Hi to all:
I would like highlight a textbox when this textbox got the focus...
I had search in the properties of the textbox but i can't see any propertie that could do this...
Any suggestion to do this?
Thanks
Printable View
Hi to all:
I would like highlight a textbox when this textbox got the focus...
I had search in the properties of the textbox but i can't see any propertie that could do this...
Any suggestion to do this?
Thanks
What do you mean highlight the textbox? Highlight a certain word in the box? Change the background color of the textbox?
Highlight the text in a textbox
All of it?
yes...all the text
Worked for me. Hope this helps.Code:Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.GotFocus
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.Text.Length
End Sub
Hi:
Very simple and work very well..
Thanks a lot