Escolar Documentos
Profissional Documentos
Cultura Documentos
OBJECTIVES:
1.
1|Page
The Visual Basic tool bar functions like the tool bar in any other Microsoft
application. It provides shortcuts for many of the common operating commands.
It also shows the dimensions and location of the form currently being designed.
10
11
12 13 14 15 16 17 18 19 20
2. Add Form
3. Menu Editor
4. Open Project
5. Save Project
6. Cut
7. Copy
8. Paste
19. Toolbox
9. Find
10. Undo
11. Redo
2|Page
21
Each
control appears as a button in the tool box. If the control you are
looking for is not in the toolbox, select Components from the
Project menu.
If the tool box is not displayed on the screen, or if at any time
during the exercises you close it, choose Toolbox from the View
menu.
TOOLS IN THE VISUAL BASIC TOOLBOX
Pointer
- Selects objects
Picture box
Label
Text box
- Draws a box that can display text and let the user
type in text
Frame
Check box
3|Page
If the form designer window is not displayed on the screen, or if at any time
during the exercises you close it, choose Object from the View menu.
5|Page
If the properties window is not displayed on your screen, or if at any time during
the exercises you close it, choose Properties Window from the View menu or
simply press F4.
THE PROPERTIES WINDOW CONSISTS OF THE FOLLOWING ELEMENTS:
Object box Displays the name of the object for which you can set properties.
Click the arrow to the right of the object box to display the list of objects for the
current form.
Sort tabs Choose between an alphabetic listing of properties or a hierarchical
view divided by logical categories, such as those dealing with appearance, fonts,
or position.
Properties list The left column displays all the properties for the selected
object. You can edit and view settings in the right column.
6|Page
Toggle folders
View code
Project name
Forms Folder
Form module
View object
A project is a collection of the forms and code that make up an application. Each
form in your application is represented by a file in the project explorer window.
Simply press Ctrl R if project explorer window is not available.
A form file contains both the description of the screen layout for the form and the
program code associated with it.
You may wish to close the form layout window to allow more space for the
properties window. To open the window again, select Form Layout Window
from the View menu.
7|Page
Private Sub
CmdExit_Click()
'Stop the program
End
End Sub
8|Page
EVENTS:
Forecolor
Font
Caption
Height
Width
Backcolor
Load
Mouse Down
Mouse Move
Click
METHODS:
Value
Draw Width
Backcolor
Unload me
9|Page