By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,965 Members | 1,757 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,965 IT Pros & Developers. It's quick & easy.

How to pass keystroke/keyevent to a user control?

P: n/a
i have a main form, with user controls populating it.
i'm trying to capture a keyevent for the control that's populating the
form but it never fires that event.

the main form's keypreview property is set to true

but when i assing the "keydown" event on the user control, nothing
happens. i set a breakpoint in the event method and never

i assigned the event to the main form's "keydown" and it fires fine. no

but for some reason, basically the exact same code set to this
control's keydown event does nothing...?!

please help...

Apr 7 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.