954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Clear Textbox onClick

Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants.

Aangiix3
Newbie Poster
20 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

This looks like a statement. Is there a question here?

Please post to show what you've already tried. We aren't a code service, but if you're stuck we will be happy to point out where you should look to fix your problem.

BitBlt
Master Poster
711 posts since Feb 2011
Reputation Points: 367
Solved Threads: 109
 

No problem, I did it.
For anyone who wants to clear the TextBox on MouseClick, use this code:

Private Sub TextBox2_MouseClick(ByVal sender as Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox2.MouseClick
TextBox2.Text = ""
End Sub
Aangiix3
Newbie Poster
20 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: