I open a new form with a single textbox when the user does something. I want the text in the textbox to be highlighted when it shows up. How do I do that?
Sorry maybe I wasnt really clear. I have a form- call it form1. I tab out(lose focus) from a text field in form1. A new form opens called form2. Form2 has a textfield with some text in it. When form2 opens I want the text in the text field to be highlighted. The text comes from a db. I know there a way of using SelLength and SelStart to achieve this. I dont know how! Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.