Objectives: Multiform Projects
Objectives: Multiform Projects
Objectives
Chapter 6
Multiform Projects
McGraw-Hill
Copyr ight 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.
6-3
6-4
Using Tabs
6-5
6-6
7/31/2014
Code procedures
Visual interf ace
Property settings for the controls
6-8
An About Box (2 of 2)
6-10
Visual Studios
About Box
template can be
used to create a
new About box.
Choose Add
Window s Form
from the Project
menu and select
About Box.
Click
6-11
6-12
7/31/2014
A Splash Screen
6-13
6-14
A splash f orm
created using the
Splash Screen
template
6-15
6-16
6-17
6-18
7/31/2014
Showing a Form
6-19
6-20
Show Method
ShowDialog Method
General Form
FormName.Show ()
Example
SummaryForm.Show ()
The Show method creates a form object from the
specified class and displays it modelessly. The
FormName is the name of the form to be
displayed.
General Form
FormName.ShowDialog ()
Example
SummaryForm.Show Dialog ()
Use the Show Dialog method when you want the user
to notice, respond to, and close the form before
proceeding with the application.
6-21
6-22
Hide Method
General Form
FormName.Hide()
Example
SummaryForm.Hide()
6-23
6-24
7/31/2014
Load
Activated
Paint
Deactivate
FormClosing
FormClosed
6-25
6-26
In the Editor, drop down the Class Name list and choose the
entry that shows the events for the selected form.
In the Method Name list, select the event for which to write a
procedureev ents already having a written procedure
appear in bold.
6-27
6-28
6-29
6-30
7/31/2014
Lifetime
Access Level
v ariable
(not recommended)
6-32
Static Variables
General Form
Static Identifier As DataType
Examples
6-33
6-34
Namespaces
6-35
7/31/2014
6-37