Computer Programming web Web programming Tips



Learn Programming in Visual Basic 6.0

By Sergey Skudaev

Happy Amazon Prime Day July 12 - Exclusive Deals for Prime Members - Start Free 30-Day Trial


Install Visual Studio 6.0 Enterprise Edition, or any edition you have. Insert CD in your CD drive and follow the instruction. Select Custom Installation and mark Microsoft Visual Studio 6.0 Enterprise Tools, Microsoft Visual Studio 6.0 Tools, Microsoft Visual Basic 6.0, Microsoft Visual C++ 6.0. Or you can install everything, if your hard drive is large enough. When installation completed, restart your PC. Go to start, Microsoft Visual Studio 6.0, Microsoft Visual studio 6.0 Enterprise tools. You will see the following menu items. Hover mouse over a thumbnail to see a large image.

Start VB Microsoft Visual studio

Open Window Explorer. Select File, New, Folder (See picture below)

Visual basic tutorial: New Folder





NewFolder folder is created. Right click on new folder and select rename from drop down menu.

Visual basic tutorial: Rename Folder

Type VB for folder name. Double click VB folder to open it.

Visual basic tutorial: create folder

Again select File, New Folder and create new folder inside VB folder. Rename it to start_vb.

Visual basic tutorial:  vb folder

Select Start, Programs, Microsoft Visual Studio 6.0, Visual Basic 6.0. Visual Basic development environment displays. On New Project window select Standard EXE

Visual basic tutorial: New Project

Default visual basic form displays.

Visual basic tutorial: Form1

Select Tools, Options from main menu. On Editor tab mark Require variable Declaration Check box.

Visual basic tutorial: Options Editor

On Environment tab mark "Prompt for project". "Prompt To Save Changes"

Visual basic tutorial: Options Environment

Click OK
Select Form properties window and type frmMain for form name

Visual basic tutorial: Properties Name







Select form Caption and type Hello World

Visual basic tutorial: Properties Caption

The form caption will be changed from Form1 to Hello World.

Select Command Button Control from the tools box and drag it to form.

Visual basic tutorial: Tool box

Select Command button and on Command button properties window type name cmdShow and caption Show Message.

Visual basic tutorial: Command Button

Select Command button and on Command button properties window type name cmdShow and caption Show Message.

Button properties

Select label control from the tools box and drag it to the form. Draw it above the button

Visual basic tutorial: Pick up label

Visual basic tutorial: Draw Label

Select label control on the form and on the label properties window type control name lblMessage, Select Alignment Center. Delete Caption

Visual basic tutorial: Label Properties

Select background color from color palette

Visual basic tutorial: Color Panel: Backcolor

Select Font Color from color palette

Visual basic tutorial: Fore Color

Select font size and style and click OK.

Visual basic tutorial: Fore Color

Font Properties setup

C o n t i n u e >>>


image1

Application output.

Subscribe to our mail list to receive free code examples.

Comments

No comments yet.

Add Comment

* Required information
(never displayed)
 
Smile Sad Huh Laugh Mad Tongue Crying Grin Wink Scared Cool Sleep Blush Unsure Shocked
 
1000
Enter the word hand backwards.
 
Enter answer:
Captcha
Refresh
 
Enter code:
 
Notify me of new comments via email.
 
Remember my form inputs on this computer.
 
I have read and understand the privacy policy. *
 
I have read and agree to the terms and conditions. *
 
 
Powered by Commentics

My eBooks on Amazon.com

Learn C++ Programming By Examples

Learn SQL Programming By Examples

Learn PHP Programming by Examples

Visual Basic Programming By Examples

How to Build Your Own Web Site from Scratch