Focus problem

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

Tony

Hello everyone,
For some unknown reason, i can't focus into any of the control in one of my
form in my Windows Application using the .Focus() method. I have no idea
how could this happen, my other forms are fine, but just one of the forms
couldn't focus to anything...
Is there anything special that need to aware of when using .Focus() ?
Any comments are welcomed!
Thanks
Tony
 
You have to watch out where you put your control.Focus();
For example putting it in the Load method won´t work!
Put it perhaps in resize or even paint. Unfortunately I haven´t found out
the best event to put it into but... It is working for me now.

Greetings,
timtos.
 
Back
Top