Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass key events from User Control to the Form it's in

Status
Not open for further replies.

zjlu2715

Programmer
Apr 5, 2002
23
0
0
US
I made a ActiveX control that allow user to navigate through a list with arrow keys. On the test Form, I loaded an array of this control. I set the KeyPreview of the form, but it never gets the key events, the active control alway takes the keystrokes before the form preview them. Is there any way from within the ActiveX control to pass Key events out to the Form so that the Form key events can setfocus on the next control if user press down key when he is on the end of the list? I see the .ContainerHwnd property from my ActiveX control but don't know how to use it.

Thanks in advance.

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top