Highlight text when Tab or Shift+Tab

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

How can i highlight the whole text in a textbox control when a user tab or
shift+tab into the control?
Thanks
Tony
 
Tony said:
How can i highlight the whole text in a textbox control when a user tab or
shift+tab into the control?
Thanks
Tony

Tony, if I understand correctly then you can use the Enter Event of the
textbox and
this.textBox2.SelectAll();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top