August 2003
Beginner
600 pages
12h 55m
English
You're now going to create a very simple project in which you'll use the event procedures of a text box. Specifically, you're going to write code to display a message when a user clicks a mouse button on the text box, and you'll write code to clear the text box when the user releases the button. You'll be using the e parameter to determine which button the user has clicked.
Create a new Windows application titled Events Example. Change the form's Text property to Events Example.
Next, add a text box to the form by double-clicking the TextBox tool in the toolbox. Set its properties as follows:
| Property | Value |
|---|---|
| Name | txtEvents |
| Location | 48,120 |
| Size | 193, 20 |
| Text | Click Me! |
The only other control you ...
Read now
Unlock full access