Trapping KeyStrokes inside a UserControl for it's parent form 
Author Message
 Trapping KeyStrokes inside a UserControl for it's parent form

Could anyone point me in the right direction.

I have a user drawn UserControl, this control cannot receive keyboard focus.
However I would like to trap keypresses from the control's container form.

For example when the user presses ALT+T I would like my control to trap
this and then perform some action.

Do I have to subclass the control's parent window, if so which window
messages
should I process ?

Many thanks in advance

Steve Wilkinson



Fri, 20 Jul 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Parent UserControl's Properties in a UserControl (placed on another UserControl)

2. Can't get HWnd of real parent form since usercontrol container changes during load

3. App.Path of the Usercontrol's Parent form

4. App.Path of the Usercontrol's Parent form

5. Form's validate does not fire usercontrol(inside textbox) validating event

6. UserControl's Parent's BackColor Change?

7. UserControl's Parent's BackColor Change?

8. Modal forms returning keystrokes to parent

9. ~Trap 'em keystrokes

10. UserControl's parent losing focus

11. UserControl's Parent property

12. Parent.Controls.Add when parent is a usercontrol

 

 
Powered by phpBB® Forum Software