1
Reply

textBox1 selectall and focus

Nikolay

Nikolay

Aug 24 2006 1:57 PM
2.9k
Imagine a form with a single text box in it. I handle the onLoad event of the form and I want the the form loads the textbox to have the input focus and the default text in the box to be selected. I tried doing that with textBox1.SelectAll() and textBox1.Focus() but neither of them works as expected( in my app they don't work at all) Can s.b. tell me what am I doing wrong and how to fix it Many thanks in advance, Nikolay

Answers (1)