How to keep UserControl focused???

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
 

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

Top