Posted by: wasaa | June 22, 2008

Visual Basic


Visual Basic

is a tool that allows you to develop Windows

(Graphical User Interface – GUI) applications.

The applications have an appearance familiar to the user.

Visual Basic Windows

The Form Window

is central to developing Visual Basic applications. (Interface)

This is where you draw your application.


The Toolbox

is the selection menu for controls used in your application. The Properties Window

is used to establish initial property values for objects.

The drop-down box at the top of the window lists all objects in the current form.

Two views are available: Alphabetic and Categorized.

Under this box are the properties available for the currently selected object.

The Form Layout Window shows where (upon program execution) your form will be displayed relative to your monitor’s screen

The Project Window

displays a list of all forms and modules making up your application. You can also obtain a view of the Form or Code windows

(window containing the actual Basic coding) from the Project window.

There are three primary steps involved in building a Visual Basic application

Draw the user interface

Assign properties to controls

Attach code to controls


An instruction to carry out some action; a single step within a program


is a common technique used by programmers to define patterns of text in ways that are compact and don’t require much actual coding.

A statement normally takes up one line with no terminator

If a statement is very long. It may be continued to the next line using the

Continuation character(_)

The Control Properties

Before writing an event procedure for the control to respond to a user’s input, you have to set certain properties for the control to determine its appearance and how it will work with the event procedure.

You can set the properties of the controls in the properties window or at runtime.

You can rename the form caption with any name that you like best. In the properties window, the item appearing at the top is the object currently selected

Properties can be set by highlighting the items in the right column then changed by typing or selecting the options available.

You may also try to alter the appearance of the form by setting it to 3D or flat. Other things you can do are to change its foreground and background color, font type and font size, enable or disable minimize and maximize buttons etc.

You can also change the properties at runtime to give special effects such as change of color, shape, animation effect and so on.

For example the following code will change the form color blue every time the form is loaded.

VB uses the hexadecimal system and VB color codes to represent colors. You can check the color codes in the properties window

The Control

The Label

The label is a very useful control for Visual Basic, as it is not only used to provide instructions and guidance to the user but it can also be used to display outputs.

One of its most important properties is Caption. Using syntax


It can display text and numeric data . You can change its caption in the properties window and also at runtime. 

  Label Properties







Aligns caption within border.Appearance

Selects 3-D or flat appearance.Auto Size

If True, the label is resized to fit the text specified by the caption property. If False, the label will retain the size defined at design time and the text may be clipped. Border Style

Determines type of border.Caption

String to be displayed in box.Font

Sets font type, style, size.

Works in conjunction with AutoSize property. If AutoSize = True, WordWrap = True, then the text will wrap and label will expand vertically to fit the Caption. If AutoSize = True, WordWrap = False, then the text will not wrap and the label expands horizontally to fit the Caption. If AutoSize = False, the text will not wrap regardless of WordWrap value.  Label Events:

Click Event triggered when user clicks on a label.

DblClick Event triggered when user double- clicks on a label.

The Command Button 

The command button is a very important control as it is used to execute commands.The most common event associated with the command button is the Click event, and the syntax for the procedure is

Private Sub Command1_Click ()


End Sub

  Command Button Properties:







Selects 3-D or flat appearance.Cancel

Allows selection of button withEsc key (only one button on a form can have this property True).


String to be displayed on button.Default

Allows selection of button withEnter key (only one button on a form can have this property True).


Sets font type, style, size. The Text Box

The text box is the standard control that is used to receive the input from the user as well as to display the output.

It can handle string (text) and numeric data but not images or pictures. String in a text box can be converted to a numeric data by using the function Val(text).



  1. You are a gay Hindi Indain Jew Wasaa!

  2. Heell Yea!
    you a hindi wannabe cowboy,
    Yee Ha!!!
    you a gay indian jew jitsu aisian black wannabe n****r!!!

  3. you really gay

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: