Condition The timer must be running enabled Add code to the Tick event

Condition the timer must be running enabled add code

This preview shows page 51 - 55 out of 55 pages.

Condition: The timer must be running (enabled) Add code to the Tick event procedure Code will be run when the Tick event occurs Component tray A special area below the form design area in the IDE Stores controls not visible in the user interface at run time
Image of page 51
9/7/2015 September 7, 2015 103 Topic 0 Using the Timer Tool (cont.) Figure 1-29 Timer control placed in the component tray September 7, 2015 104 Topic 0 Setting the FormBorderStyle Property FormBorderStyle property Determines the border style of a form Example settings: Sizable: Allows the user to change a form’s size by dragging its borders at run time FixedSingle: A fixed, thin border line None: No border
Image of page 52
9/7/2015 September 7, 2015 105 Topic 0 The MinimizeBox, MaximizeBox, and ControlBox Properties MinimizeBox property Determines whether the Minimize button appears on the form’s title bar MaximizeBox property Determines whether the Maximize button appears on the form’s title bar ControlBox property Determines whether the title bar appears on the form Splash screens typically do not contain a title bar To remove a title bar, delete the contents of the form’s Text property September 7, 2015 106 Topic 0 Figure 1-31 Completed splash screen The MinimizeBox, MaximizeBox, and ControlBox Properties (cont.)
Image of page 53
9/7/2015 September 7, 2015 107 Topic 0 Printing the Application’s Code and Interface (FYI only) Printing the application’s code and user interface helps you understand and maintain the application To print the code: Press Prnt Scrn on the keyboard Paste into Word or Paint and then print To print the interface: Click the Splash Form.vb tab to make the Code Editor window the active window Click FILE on the menu bar, and then click Print to open the Print dialog box September 7, 2015 108 Topic 0 Figure 1-32 Print dialog box Printing the Application’s Code and Interface (cont.) (FYI only)
Image of page 54
9/7/2015 September 7, 2015 109 Topic 0 Lesson C Summary The timer control processes code at specified intervals A form’s MinimizeBox and MaximizeBox properties enable or disable the Minimize and Maximize buttons on the form A form’s ControlBox property determines whether the icon and control buttons appear in the title bar A form’s FormBorderStyle property controls the appearance of the form’s border Print Visual Basic code from the Code Editor window Print the user interface from the designer window
Image of page 55

You've reached the end of your free preview.

Want to read all 55 pages?

  • Fall '15
  • Visual Basic for Applications, .NET Framework, Microsoft Visual Studio

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture