Guaranteed Hits to your web site!












Learn Visual Basic 6.0


1. Introduction to the Visual Basic Language and Environment



Drawing the User Interface and Setting Properties

Visual Basic operates in three modes.
  1. Design mode - used to build application
  2. Run mode - used to run the application
  3. Break mode - application halted and debugger is available
  4. We focus here on the design mode.

Six windows appear when you start Visual Basic.
  1. The Main Window consists of the title bar, menu bar, and toolbar. The title bar indicates the project name, the current Visual Basic operating mode, and the current form. The menu bar has drop-down menus from which you control the operation of the Visual Basic environment. The toolbar has buttons that provide shortcuts to some of the menu options. The main window also shows the location of the current form relative to the upper left corner of the screen (measured in twips) and the width and length of the current form.


    Menu



  2. The Form Window is central to developing Visual Basic applications. It is where you draw your application.


    Form1



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


    Toolbox



  4. 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 available properties for the currently selected object.


    Properties



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


    Layout



  6. 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.


    Project1



As mentioned, the user interface is �drawn� in the form window. There are two ways to place controls on a form: To move a control you have drawn, click the object in the form window and drag it to the new location. Release the mouse button.

To resize a control, click the object so that it is select and sizing handles appear. Use these handles to resize the object.


Move & Resize


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1