Selecting text after TextBox.Focus() is executed

  • Thread starter Thread starter David C
  • Start date Start date
D

David C

I see that the .Focus() method is new in .NET 2.0, which I think is
handy.

But is there a way to make text in a textbox selected when the focus
is set in it? This would be equivalent to calling .select() in
javascript.
 
Use client-side JavaScript to handle the onfocus event of the text box and
call the select method.

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top