Professional Documents
Culture Documents
OOP Terminology
OOP Terminology
(continued)
Object-oriented program: one that focuses on
objects the program can use to accomplish its goal
Web-based application:
Planning an Application
IDE Windows
Toolbox: contains tools for creating the GUI
(Controls)
10
TOE Chart
11
12
Consistency
Ease of use
Familiar look and feel
Primary window:
The main window in an application
Dialog Boxes
Can be closed only
Title Bar includes:
Close button and optionally a Help button
No control menu
13
14
Guidelines:
Information should flow either vertically or
horizontally
Group related controls together using white space or
container controls
Container controls:
GroupBox control
Panel control
TableLayoutPanel control
15
Control Guidelines:
Use a label with each text box
Left-align the labels text (I prefer Right-align)
Position label to left of or above the text box it
identifies (I prefer to the left)
Labels and button captions should be 1 to 3 words only,
and appear on one line
Labels and captions should be meaningful
Use sentence capitalization for labels
16
Graphics Guidelines:
Human eye is drawn to pictures before text
Include graphics only if necessary
Use for aesthetic purposes
Use to clarify a portion of the screen
Font Guidelines:
17
18
Access key:
19
20
TabIndex property:
Determines the order in which a control receives the
focus when the Tab key is pressed
Starts at 0
Default TabIndex values are set according to the order
in which the controls were added to the form
When a form starts, the control with the lowest
TabIndex value gets Focus unless Focus is forced to
some other control by the code.
BE CONSISTANT
21
Chapter 3
Variables
22
Name
Data type
Scope
Lifetime
23
24
Declaring a Variable
Declaration statement: used to declare, or create,
a variable
Declaration statement includes
Scope keyword: Dim or Private or Static
Public
Scope determines Lifetime
25
26
Initializing a Variables
Variables are initialized when they are Instantiated
If you do not provide a value, VB does it for you
VB sets a default value based on data type
Assignment statement:
Used to assign values to properties of controls
Used to assign values to variables
27
28
29
30
31
32
Convert class:
Contains methods for converting numeric values to
specific data types
33
34
35
36
37
38
Static Variables
Static variable:
Procedure-level variable that retains its value even
after the procedure ends
Retains its value until the application ends
Can be used instead of a Class-level variable
39
40
10
41
42
43
44
11
Miscellaneous Concepts
Option Explicit On forces declaration of all
variables before use
Option Strict On disallows any implicit type
conversions that may cause a loss of data
Option Infer Off statement: ensures that every
variable is declared with a data type
45
12