1-Starting Visual Basic
1-Starting Visual Basic
IN
PROGRAMING
LANGUAGE 2
2. You can also open Microsoft Visual Basic program by clicking the Visual
Basic icon if there is a shortcut icon set on the desktop.
The first window that you will see after clicking the VB6 is the Project
Wizards New Project dialog box. From this window, you can select several
types of projects. This window has three tabs:
New Project Wizards window tab offers you several project templates:
Standard EXE
Active EXE
Active X DLL
Active X Control
VB Application Wizard
Data Project
Add-in
VB Wizard Manager
ISS Application
Activex Document DLL
DHTML Application
DRAWING CONTROLS
Controls are seen in the Form Layout window, a general purpose window.
These are the graphics and input/output devices. All control-drawing tools are
located in the Toolbox, which is a panel on the left of the screen.
To draw a control
1. Click the appropriate Toolbox icon.
2. Move the pointer to the form area.
3. Click where you want the objects top-left corner to go.
4. Drag to size the control.
OR
5. Double-click the icon.
6. Use the mouse to move and size the control as desired.
IDE is the term used in the programming world to describe the interface and
environment to create your application. Visual Basic is called IDE because you
can access virtually all the development tools you need from one screen.
Menu Bar
Form Designer
Project Explorer
Toolbar
Toolbox
Properties
window
Form
Layout
window
MOUSE TECHNIQUES
Visual Basic is designed to be used in conjunction with the mouse, the mouse has two buttons:
the left button which is used most of the time, and the right button which is used for special
functions. However, operation in Visual Basic can also be controlled using the keyboard.
Below are mouse techniques to remember.
MOUSE TECHNIQUE
Click
MEANING
To quickly press and release
the mouse button
Double-Click
Drag
Point
The Toolbar
This provides the quick access to commonly-used commands in the
programming environment.
To move a toolbar
1. Click the toolbar button and hold the mouse button.
Drag the button to a new position on the screen.
2. Notice that there is an imaginary box moving while you move your mouse.
If the imaginary box is in the position you want, let go off the mouse and
the toolbar drops into its new position.
To remove and add menu item on your menu bar/toolbar
1. Right click the toolbar at the top of the screen.
3. Select Customize from the pop-up menu.
4. Select the Commands tab from the Customize dialog box.
5. In the Categories list, scroll down to the bottom and select Built-in Menus.
6. Go up and look for Help menu on the Visual Basic menu bar and drag it to
the Command list. Once the menu item is over the list, drop it.
The Help menu has been removed from your menu bar.
6. Select Help menu from the Command list and drag it back to the Menu Bar
and drop it back in its original position.
7. Click Close to save your modification.
The Toolbox
This contains useful tools needed during design time. These tools are used to
place controls in a form.
File Name
Internal Name
No Maximize button
Property Name
Property Caption
Left Setting
Top Setting
Width Setting
Height Setting