Professional Documents
Culture Documents
setting of property values inside the properties window, setting controls, and
the codes that you will input inside the code window.
1. Load the Visual Basic program.
2. When the computer prompts in the New Project window, choose the
Standard EXE project.
3. Click the Open button.
Standard
EXE
Open button
Opening a Project
There are two ways in opening a project.
Open the New Project window icon.
Click File menu, the Open Project command.
1.
2.
3.
4.
Property Basics
A rectangular window on the screen is
called the form. The window's
Title Bar
appearance is defined by a set of
properties. The position of the form on
the screen is named by its Left and Top
properties while its size is labeled by its
Width and Height properties. What you
see in the title bar is the Caption
property and if you specify the control Height
buttons, they will appear on the form.
Control Buttons
Width
A forms appearance is
defined by its properties.
Created Controls
on the form
To save a form as a project, Visual Basic creates a text file with an .FRM extension.
This file includes the properties that define the form and its object
ACTIONS
The user changes the textbook or combobox.
Click
DblClick
DragDrop
DragOver
GotFocus
KeyDown
KeyPress
KeyUp
LostFocus
MouseDown
MouseMove
MouseUp
Events Procedure begins with the statement Private Sub and ends with End Sub.
Event Procedure
EVENT PROCEDURE
DESCRIPTION
Form_Load
Form_Paint
Form_Click
buttonname_click
Private-End
block
body of the
event
Controls are the graphical features or tools that are placed on forms to allow
user interaction, controls are referred to as objects. The Toolbox window is the
selection menu for controls used in your application.
Pointer
Label
Frame
CheckBox
ComboBox
HScrollBar
Timer
DirListBox
Shape
Image
OLE
PictureBox
TextBox
CommandButton
OptionButton
ListBox
VScrollBar
DriveListBox
FileListBox
Line
Data
Controls allow you to trigger events or perform actions. These are the building blocks of
Visual Basic application, to add controls on the form, double-click the control you want
to add or draw the control by clicking the control and then drag the mouse around the
area where you want to put the control.
To use the Command Button
1. Select the Command Button from the Toolbox.
2. Click and draw the button on the form. Resize it depending on how or where you
want it to appear.
3. Change the Name of the Command Button to cmdTinboy.
Change the Caption to Tinboy.
4. Select a CommandButton again from the Toolbox.
Draw the CommandButton in the form.
button.
After clicking the Save button, the next dialog box that appears is the Save Project As
dialog. The features of this dialog box is similar to the features of Save File As dialog, except
that in Save Project As dialog box it specifies the project file name.
current directory
contents of
current directory
save file as
Make Projectname.Exe
command