Friday, August 6, 2010

Chapter 1: Introduction to Visual Basic 6 windows

The Form Windows is central to developing Visual Basic application. it is where you draw your application.


The Toolbox is the selection menu for control used in your application.


The Properties Windows is used to setting the currently selected object property values

The Form Layout Windows, shows where your form will be displayed relative to your monitor's screen


The Project Windows displays a list of all forms and modules making up your application



Chapter 2: Simple Form Application for Starter - Visual Basic 6

Open Visual Basic 6 Application.



Arrange objects as figure below.

- To add objects on Form field,Double click object on the left side of the visual basic windows.

- Goto Properties Windows and change the objects name.







Clear the existing text on the TextBox by clearing Text on Properties Windows as shown in figure below.

- Click on TextBox Object, and goto to Properties Windows.

- Clear Text field.








Change button name by changing name field on properties windows.


Make sure that, all the arrangement as in figure below.




Double click on "Calculate" button, and write coding as shown below.




To run the program, goto Run --> Start




Program run as below, enter num1 and num2, and click "Calculate" button.

Program will calculate the summation of num1 and num2.





Chapter 3: Working with Microsoft FlexGrid 6.0

Microsoft FlexGrid 6.0 is used to display/tabulate your data so that it will look more organize. It is consists of row and column. To start working with Microsoft FlexGrid 6.0, you need to add Microsoft FlexGrid 6.0 control by follow the following step.

Goto Project --> Components or by Press Cntrl + T


Check on Microsoft FlexGrid 6.0


Microsoft FlexGrid 6.0 icon appear on Toolbox.


Double click on [MSFlexGrid] icon on Toolbox.
MSFlexGrid will attach on Form Windows.
To add number of row and /or number of column, click on MSFlexGrid object and goto Properties Windows --> Rows and/or Properties Windows --> Cols and enter the respectives value.

Arrange the Form Windows as below.

Double click on the Form, and write the following program.
Double click on [Calculate] button, and write the following program

Run the program. Run --> Start.