0% found this document useful (0 votes)
22 views

COMPROG MIDTERM REVIEWER (2)

The document is a midterm reviewer for Visual Basic, covering key concepts such as its definition, terminologies, and components like forms, controls, and data types. It includes information on the Visual Basic environment, coding examples, and shortcut keys for efficient programming. Notable figures and historical context, such as Alan Cooper as the father of VB, are also mentioned.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

COMPROG MIDTERM REVIEWER (2)

The document is a midterm reviewer for Visual Basic, covering key concepts such as its definition, terminologies, and components like forms, controls, and data types. It includes information on the Visual Basic environment, coding examples, and shortcut keys for efficient programming. Notable figures and historical context, such as Alan Cooper as the father of VB, are also mentioned.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

COMPROG MIDTERM REVIEWER

TOPIC: VISUAL BASIC

Father of VB: Alan Cooper


First Company to use drag and drop: TRIPOD
Beginner’s All-Purpose Symbolic Instruction Code (BASIC)
Integrated Development Environment (IDE)
Rapid Application Development (RAD)
Graphical User Interface (GUI)

WHAT IS VISUAL BASIC?


- 3rd generation event-driven programming language with IDE
- Easy to learn and use
- Derived from BASIC and enables RAD of GUI applications

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”

SOLUTION EXPLORER WINDOW


- Window that displays the file names and other items used in project
- Used to create new class, folder, or reference, just right click a folder node
- Allows to rename or delete some items

VB TOOLBOX

- Organizes items in categories and each represented by a button


- By default, TB is positioned on the left side but you can change by dragging the title bar

Pointer- used to interact with the controls


on the form
PictureBox- used to display images
Label- used to display texts which cannot
be edited
Textbox- accept user input, can display
editable text

Frame- used to group other controls


Button- initiate an action by pressing on the
button
Checkbox- do a choice for user (checked
or unchecked
RadioButton- used in groups where one at
a time can be true or false
ListBox- provide list of items
ComboBox- provide shortlist of items

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

NUMERIC DATA TYPE


- Consists of numbers which can be computed mathematically with various standard
operators

NON NUMERIC DATA TYPE


- Cannot be manipulated mathematically using standard arithmetic operators

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:

Fn F5- start debugging


Stop debugging- Ctrl Alt Break
Fn F8- Step into
Fn Shift F8- Step Over
Ctrl alt X- toolbox
Fn F7- View Code
Fn Shift F7- View Designer

You might also like