Visual Basic 2010 Introduction
Visual Basic 2010 Introduction
PROGRAMMING, if you
Love Something you can
put beauty into it.”
DONALD KNUTH
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-3: Visual Studio 2010 Professional
13
startup screen
Figure 1-4: Visual Basic 2010 Express startup screen
How To Create A Visual Basic 2010 Windows
Application
15
Figure 1-5: How to create a Visual Basic 2010 Windows application
How To Create A Visual Basic 2010 Windows
Application (Cont’d.)
Figure 1-5: How to create a Visual Basic 2010 Windows application (cont’d.)
How To Create A Visual Basic 2010 Windows
Application (Cont’d.)
Figure 1-8: Completed New Project dialog box in Visual Basic 2010 Express Edition
How To Create A Visual Basic 2010 Windows
Application (Cont’d.)
Figure 1-21: Code template for the exitButton’s Click event procedure
THE ME.CLOSE() INSTRUCTION
• Me.Close() instruction: closes the current form at run time
• If the current form is the only form, the application is
terminated
• Me keyword: refers to the current form
• Method: predefined VB procedure that can be invoked (called)
when needed
• Sequential processing: each line is executed in sequence
• Also called a sequence structure
THE ME.CLOSE() INSTRUCTION (CONT'D.)
Figure 1-30: How to print the code and interface during design time