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: