Skip to content

TextBox1 selectall and focus

Nikolay

Asked Aug 24, 2006, 9:57 AM EDT1 answer
Share
LinkedInX
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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    do the same task in Activated event of the form
    0