Hi!
The tree view control is a different Windows window that handle all events by self. You require to handle the KeyPress event of the Tree View individually.
>Hi everybody,
>
>I'm struggeling with a form with a treeview on it. I want to add some keyboard-shortcuts to the form but whenever the treeview is the activecontrol the forms keypress-event isn't triggerd. I've set the forms keypreview-property but its ignored when the treeview is the active control.
>Is there a way to add keyboard shortcuts to the form and if there is, can anyone tell me how to do it?
>
>Everybody please feel free to respond
>
>TIA 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.