![]() |
![]() ![]() ![]() |
|||
|
Lesson1
(13/13)
|
Add another Command Button to your form. The New Command Button's
name is "Command2" by default (Figure
26)
Now, rewrite the Command1 Click event and insert the following line to it: Print "This is Command1" Select "Command2" (This is the name of the second Command Button)
from the Components list (Figure 23), And select "Click" from
the Command2 events List. Print "This is Command2" After you've done so, your code should look like this: Run the program. When you are clicking on Command1 Button, the text "This is Command1" appears on the form, and when you are clicking on Command2 Button, the text "This is Command2" appears on the form. |
|||
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |