|
-
Feb 2nd, 2013, 02:07 AM
#1
Thread Starter
PowerPoster
Click on a textbox and clear it's contents.
Hi everyone. I am working on a student program, and basically I have a textbox called Text1 that says CLICK HERE TO ENTER ANSWER, but when the student clicks on it, I would like to clear the contents of the box.
I have googled it, and found code to erase it in VB.Net, but was wondering if anyone knew how to do the same, but in VB6?
Here is the VB.net code I found.
Private Sub TextBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown
TextBox1.Text = ""
End Sub
I know there is a MouseDown event, but the "handles"?
Thanks a lot!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|