Great Deals on Digital Cameras and Accessories

Canon PowerShot A590 8.0 MP Digital Camera - Only $139.95!

HP Store search box: Computers, Electronics, Hardware

Search:

Canon Instant Rebates at Calumet Photographic! Save up to $125 instantly on select Canon Lenses and Flashes! Expires 1.17.09

   

Start Programming in Visual Basic 6.0

VB Lesson 1 - simple VB code

Best Computer Deals on the 'Net - 24x7 @ Geeks.com

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.

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

Run a free scan to test your PC's performance now.

Are your Drivers up-to-date? Run the FREE Driver Scan Now.

Secure your PC. Run the FREE Privacy Scan Now.

Got Spyware? Run the FREE Spyware Scan Now.

What's faster? A turtle, a mole or your PC?

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: Font Properties

Font Properties setup

C o n t i n u e >>


Good Deal...



HP Pavilion Entertainment dv7z Customizable Notebook PC

HP Pavilion Entertainment dv7z Customizable Notebook PC

Send message to your friend about to this tutorial.
Link to the page will be authomatically added to your message.
Both emails will not be stored in our database.
Your Email:
Friend Email:
Subject:



I strongly recommend this book for beginners. When I started to learn Visual Basic, I spent a lot of money for many books, because no one book was good to grip the whole subject. Visual Basic from the ground up by Gary Cornell is a book sufficient in one.
S.S.

HobbyTron's Daily Deal