Re: shortcuts by Stoitcho
Stoitcho
Wed Jun 14 08:55:24 CDT 2006
Steffen,
This is exactly how it works. The form checks only for shortcuts declared on
the level of the main menu. If it finds one there it executes it regardless
of the currently focused control. Shortcuts declared on the level of a
context menu are executed only if the control that has this context menu
attched has the focus also.
Can you post some compilabel sample that demonstrates your porblem?
--
HTH
Stoitcho Goutsev (100)
"Steffen" <steffen_home_92@hotmail.com> wrote in message
news:1150187805.102418.121770@p79g2000cwp.googlegroups.com...
> Hi,
>
> I'm using short cuts for some context menu strip items (for example
> "copy" CTRL+C). The context menu belongs to a tree view control. When I
> work with another control of my form than the tree view control, the
> short cuts shouldn't be enabled because pressing CTRL+C in a text box
> shouldn't invoke the handler for the "copy" context menu item of the
> tree view control. Is there a way to process the short cuts only when
> the tree view control is focused?
>
> Thanks for any help,
> Steffen
>