Hi!
ActiveX si another Windows window that have its own events handler, thus keys will go there when it is active. I guess you can call KeyPress event of the form from the ActiveX KeyPress event, however, there are difference so I guess you will require also to use some API functions to get all information required for VFP's KeyPress event.
>Hi Everybody,
>
>I've got a curious problem. I'm building a form with an ActiveX-treeview-control on it. I've set the forms KeyPreview-property to .T. so that every key-stroke will go through the forms KeyPress-event. But when the treeview is the active control it's not the forms-KeyPress-event that's triggerd but the treeview-KeyPress-event.
>Does anybody know how to bypass this without losing the functionality on the treeview?
>
>I want to do this because I want to add some shortcuts to the form, they are essential in the forms functionality.
>
>Hope to hear from anybody soon,
>T.I.A. Erwin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.