Problem with Focus()

  • Thread starter Thread starter james
  • Start date Start date
J

james

I have several Popup Windows Forms which have a TextBox at the top that I
want the cursor to Focus too when the Form comes up. I am using the
standard control.Focus() but I cannnot seem to get the control to actually
receive the focus. I place my code both in Form_Load and in Form_Activated.
The odd thing is that sometimes it works, and sometimes it doesn't. Is
there a solution for this ??

thanks in advance
 

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