A poor-man's way of doing this would be to 'force' the mnemonic keys for
each level into the keyboard buffer, at timed intervals to allow for the
menu to open... you can do this with SendKeys, in the VB compatibility
namespace I believe.
--
John Wood
email: john dot wood at priorganize dot com
"Valerie Hough" <sa***@pcTrans.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
Say I have a context menu structure like:
Top Level 1
Sub Level 1a
Sub Level 1b
TopLevel 2
Sub Level 2a
Sub Level 2b
SubLevel 2b-1
SubLevel 2b-2
item1
item2
.
.
SubLevel 2c
From my application, when the user presses a ctrl key sequence, I would
like to "open" the menu up to
TopLevel2
SubLevel 2b
SubLevel 2b-2
so that the user then may press the mnemonic to select item1 or item2 on
menu SubLevel 2b-2
Using PerformSelect() I cah get to SubLevel 2b, but once I have got the
menu open to that point, I am unable to force the opening of SubLevel 2b-2
Can anyone help ?
Thanks in advance