Professional Documents
Culture Documents
VISUAL PROGRAMMING
2017/18
BCS 2
Objectives
After studying this chapter, you should be able to:
• Create a Visual Basic 2010 Windows-based
application
• Manage the windows in the Integrated Development
Environment (IDE)
• Set the properties of an object
• Add a control to a form
• Use the Label, Button, and PictureBox tools
• Use the options on the Format menu
Figure 1-2: How to start Visual Studio 2010 or Visual Basic 2010
Express Edition
Figure 1-5: How to create a Visual Basic 2010 Windows application (cont’d.)
Figure 1-7: Completed New Project dialog box in Visual Studio 2010
Microsoft Visual Basic 2010: Reloaded, Fourth Edition 14
How to Create a Visual Basic 2010
Windows Application (cont’d.)
Figure 1-14: Properties window showing a partial listing of the form’s properties
Microsoft Visual Basic 2010: Reloaded, Fourth Edition 25
Properties of a Windows Form
(cont'd.)
• Class definition: block of code that defines the
attributes and behaviors of an object
– All class definitions are contained in namespaces
• Namespace: defines a group of related classes
• Dot member access operator: the period that
separates words in an object’s name to indicate a
hierarchy of namespaces
• Name property: used to refer to an object in code
– Give each object a meaningful name
Figure 1-21: Code template for the exitButton’s Click event procedure
Figure 1-30: How to print the code and interface during design time
Microsoft Visual Basic 2010: Reloaded, Fourth Edition 54
Closing the Current Solution