Building an Event Example Project
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.
Creating the User Interface
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:
The only other control you ...