M
marfi95
I'm very confused. I'm trying to automatically select the text when
my textbox gets the focus. This is typically when the user has
clicked the mouse in the field.
This is the code I have in the Text1_GotFocus event:
Text1.SelectionStart = 0
Text1.SelectionLength = Text1.Text.Length
However, the text does not get highlighted. It appears to be the
"selectedtext" though because immediately after that I have a
Console.Writeline call printing text1.selectedtext and it is the
entire field. I just can't get it to highlight. Any ideas ????
Mark
my textbox gets the focus. This is typically when the user has
clicked the mouse in the field.
This is the code I have in the Text1_GotFocus event:
Text1.SelectionStart = 0
Text1.SelectionLength = Text1.Text.Length
However, the text does not get highlighted. It appears to be the
"selectedtext" though because immediately after that I have a
Console.Writeline call printing text1.selectedtext and it is the
entire field. I just can't get it to highlight. Any ideas ????
Mark