How to Create Your First Visual Basic Project (2008 Express)

Download and install Microsoft Visual Basic 2008 Express edition., Click on the Toolbox panel, just left of the new form and click on the TextBox control (you may have to use the vertical scroll bar)., Notice on the right side of the programming...

11 Steps 2 min read Medium

Step-by-Step Guide

  1. Step 1: Download and install Microsoft Visual Basic 2008 Express edition.

    Follow all on-screen installation instructions.

    From the Windows Start menu, find and click Visual Basic 2008 Express Edition.

    This will launch the Visual Basic programming environment.

    On the File menu, click New Project.

    Click on Windows Forms Application icon and click OK.

    A new form will be displayed and this is where you will add buttons, text boxes, and so forth.
  2. Step 2: Click on the Toolbox panel

    Press the Esc button to hide the Toolbox and in the form area, draw a text box by clicking and holding the left mouse button and dragging the cursor down and to the right about half the width of the form.

    From here, you can hover the mouse over the Textbox control, grab it, and move it anywhere on the form.

    You can also resize the Textbox by clicking it once and grabbing and dragging the left or right anchor (the little white boxes on either side). , This box shows all the properties of the Textbox you just created, everything from color of the box to the text it holds. , Once again, press the Esc key and construct a button by pressing and holding the left mouse key and dragging it down and to the right.

    A button will appear and it will have 'Button 1' as its text.

    In the Properties window, just to the right, find the Text property and change it from 'Button 1' to 'Wish Me a Happy Birthday'. ,, From where the cursor sits, type:
    MsgBox("Happy Birthday " + TextBox1.Text + "!") , In the Textbox you created, type your name and then press the 'Wish Me a Happy Birthday' button.
  3. Step 3: just left of the new form and click on the TextBox control (you may have to use the vertical scroll bar).

  4. Step 4: Notice on the right side of the programming environment

  5. Step 5: there should be a Properties window

  6. Step 6: if not

  7. Step 7: press the F4 key.

  8. Step 8: Click on the Toolbox panel again and click on the Button control.

  9. Step 9: Resize the button you just created to show all the text.

  10. Step 10: Double click the button and the code window will appear.

  11. Step 11: Press F5 to run the program.

Detailed Guide

Follow all on-screen installation instructions.

From the Windows Start menu, find and click Visual Basic 2008 Express Edition.

This will launch the Visual Basic programming environment.

On the File menu, click New Project.

Click on Windows Forms Application icon and click OK.

A new form will be displayed and this is where you will add buttons, text boxes, and so forth.

Press the Esc button to hide the Toolbox and in the form area, draw a text box by clicking and holding the left mouse button and dragging the cursor down and to the right about half the width of the form.

From here, you can hover the mouse over the Textbox control, grab it, and move it anywhere on the form.

You can also resize the Textbox by clicking it once and grabbing and dragging the left or right anchor (the little white boxes on either side). , This box shows all the properties of the Textbox you just created, everything from color of the box to the text it holds. , Once again, press the Esc key and construct a button by pressing and holding the left mouse key and dragging it down and to the right.

A button will appear and it will have 'Button 1' as its text.

In the Properties window, just to the right, find the Text property and change it from 'Button 1' to 'Wish Me a Happy Birthday'. ,, From where the cursor sits, type:
MsgBox("Happy Birthday " + TextBox1.Text + "!") , In the Textbox you created, type your name and then press the 'Wish Me a Happy Birthday' button.

About the Author

J

Jacqueline Murray

Experienced content creator specializing in creative arts guides and tutorials.

53 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: