Overview
Machine Language - Written in 1's & O's
Assembly Language - use mnemonic's instead of 1's & 0's, assembly language converted to macine code by an assembler
High-Level Languages
Interpreter - translates high level into machine code one line by line as program runs
Compiler - translates entire program into machine code before running the program
Procedure Oriented languages - emphasis on how to accomplish a task
Object Oriented - emphasis on Objects included in user interface and the events those object use
Objects
attributes - characteristics that describe an object
behavior - operations that the object can perform or have performed on it
class - is simply a pattern or blueprint for creating an object
instance - object created from an instance of a class
Encapsulation - combing an objects attributes and behavior into one package
Abstraction - hiding internal details of an object from its users
Inheritance
create one class from another
derived class, inherits the attributes and behaviors of the original class(base class)


Tutorial
Splash Screen - first image that appears, keeps user interest when an application is run VB Windows
Main Window - contains title bar, the menu bar and the standard tool bar
Form Window - window in which you design the user interface
Toolbox Window - contains the set of tools you use when designing a VB application
Check Box - Displays a box that is either checked or unchecked
Combo Box - Combines and displays a text box with a list box
Command - Button Performs a command when clicked
Label - Displays text that the user cannot change
Line - Draws a line on a form
List Box - Displays a list of choices
Text Box - Accepts or displays text that the user can change
Project Explorer - displays a hierarchical list of the projects included in the application that you are creating, as well as the items contained in each projects
View Code button, View Object Button, Toggle Folders Button
List Window - list projects(and included files)
Object Box - Lists all objects in the user interface name and type
Properties Window - attributes of currently selected object controls objects
appearance and behavior, display alphabetically or by category
Caption Property - controls ext displayed in the form's title bar
Name Property - object's name, cannot use punctuations characters
or a space, less than 40 characters
BackGround - sets background color of an object
Starting a project - File, New, choose standard exe
Saving a project - File, Save, type a name for the project, file has .vbp extension Forms have .frm
Run a project - Run, Start
Make an exe - File, Make
Opening - File, Open, select project to open


Lesson B
To get help press F1 or choose Help from main menu
Adding Controls
Double click a control on toolbox - control appears in center of form
Click a control on the toolbox and then click in form
Move a control
sizing Handle on end of a control - hold mouse pointer over end to it becomes a
double arrow, than drag to change size
place mouse pointer anywhere on control other than sizing points and drag
To set properties click on control go to properties window
To set properties of more than one control at a time
while holding down the ctrl key, left click on all desired objects
go to property window and change desired property of all objects
To Change a font
select object, click on the object's font property
point size (1 point 1/72 of an inch)
twip (1/1440 of an inch)
Label Control
Caption Property
AutoSize - adjusts label's size to size of caption
To select multiple controls
while holding down the ctrl key, left click on all desired objects
to deselect one control, hold down control key and click on object to deselect
to deselect all, click anywhere on empty area of form
Lesson C
Image Control
to set image, click picture property in property box
select image with the Load Picture Dialog Box
Command Button
To Open code window, double click on button

Code Window
Object Box - List current object as well as all objects
Procedure Box
Current Event Procedure - lists current event as well as all events for this object
all the events to which the object is capable of responding
Input Area
where you type code of the current event

Basic statements
end - end a program

Form Object
BorderStyle Propert
0 - None (removes title bar, Minimize, Maximize, Close Buttons)
1 - Fixed Single
2 - Sizable
3 - FixedDialog
Frame Control
serves as container for other objects
visually separates related controls from other controls on form
controls in frame treated as one unit
label control by setting caption property

Scroller Control - display the Caption scrolling
Caption - text that scrolls when program executed
backcolor - background color

Visible Property - determines whether an object is visible or hidden

Printing a Visual Basic application
From main menu File, Print
Print Dialog appears
Print what section - choose one or more of the following
Form as image - prints form as image
Code - prints code
Form as text - prints properties of objects
Range section
Selection - prints only the code that is selected
Current Module - prints current module
Current Project - prints project