Make your own free website on Tripod.com
Write Your First Visual Basic Program

Lesson 1
Tutorials - Page 1 - Page 2 - Page 3 - Page 4 - Page 5 - Page 6 - Page 7 - Page 8 - Page 9 - Page 10 - Page 11

Learning about Events (Continue)
Lets program the Form_Load event.

"MsgBox" is Visual Basic command that launch a message box.
for example, the line:

MsgBox "Hello"

Will launch a message box with the text "Hello".

Insert the line   MsgBox "Hello"   to the Form_Load event (Figure 21).

Figure 21

Now run your program using the Play button.
When the program is started, a message box with the
text "Hello" is appear (Figure 22).

Figure 22

Back  Forward