How to keep UserControl focused???

  • Thread starter Thread starter jcavo
  • Start date Start date
J

jcavo

Hi All,

I created a User Control, myusercontrol, with other controls inside. How
can I keep myusercontrol focused, so I can handle the keyboard inputs the
way I want? I seem to have trouble doing that. Every time when
myusercontrol.Focus() is called the input is directed to the controls inside
mysuercontrol, such as Label, TextBox Controls. I put breakpoints at
various places during run time and noticed that myusercontrol got focused
when myusercontrol.Focus() is first called, but then quickly lost it to
other controls inside of it. Is there a way to keep myusercontrol focused?



By the way I'm using Visual Studio 2005, CFW 2.0.



Thanks,

JC
 
Back
Top