COMPROG MIDTERM REVIEWER (2)
COMPROG MIDTERM REVIEWER (2)
VB TERMINOLOGIES
Design time- any time an application is being developed in the Visual Basic Environment
Run time- any time an application is running
Forms- windows can be customized to serve as the interface for an application or as dialog
boxes used to gather information from the user.
Controls- graphic representation of objects, such as buttons, list boxes and edit boxes that
users manipulate to provide information to the application
Objects- general term used to describe all the forms and controls that make up a program
Properties- the characteristics of an object such as size, caption or color
Methods- actions that an object can perform or that can be performed on the object
Events- actions recognized by a form or control
Event-driven programming- its code executes in response to events invoked by the user,
operation system or application
New Project/Open Project Section
Recent Project section
Getting Started Pane- provides helpful tips to quickly develop applications
Latest News Section- latest online news about VB
VB 2010 Express- will announce new releases
FORM
- Basic building block in VB
- Heart and soul of any windows application
- “User Interface”
VB TOOLBOX
OBJECT NAMING
Frm- form
Cmd- button
Txt- text box
Lbl- label
DATA TYPES
- Classification of the type of data that variable can hold in programming
- Represents the attribute of data
CONSTANTS- are different forms of variable in the sense that their values do not change during
the running of the program (Const Constant Name As Data Type=Value)
Ex. Const Temp As Single= 37
Coding VB
-Public Class frmWelcome
-Private Sub cmdGreen
Me.Backcolor = Color.Green
End Sub
-Private Sub cmdShow
lblWelcome.Text = “Have a
Nice Day!” & txtName.Text
End Sub
-Private Sub cmdYellow
Me.Backcolor = Color.Yellow
End Sub
-Private Sub cmdExit
End
End Sub
End Class
Shortcut keys: