Re: How to select a menu item programatically?

From: AlexS (salexru2000NO_at_SPAMsympaticoPLEASE.ca)
Date: 06/09/04


Date: Tue, 8 Jun 2004 22:05:51 -0400

Marv,

This Java class from Java Swing, so I am not sure how it relates to
Windows.Forms. Forms client - read user - can select and decide to execute
any menu item without this class functionality. Are you talking about
setSelectedPath method? What are you trying to do?

I am not sure I understand what you mean by "programmtically select a
certain option for the user". In WinForms user can choose, select menu
option and execute it if MainMenu or ContextMenu are available in UI. What
do you need in addition? Programmatically - do you want to execute the
option or what? If you mean only some visual feedback for user - what kind
of feedback? Do you want to change standard Windows visual feedback? Do you
want to emulate user input to manipulate menu instead of user like some test
suites do?

Please be more specific.

HTH
Alex

"Marv" <x@x.com> wrote in message
news:ObhzGVbTEHA.3580@TK2MSFTNGP09.phx.gbl...
> Hi!
>
> I just want to programatically select a certain option in a menu for the
> user. The user can choose whether he/she wants to execute the command or
> not.
>
> I'm looking for a similar functionallity of the java class
> MenuSelectionManager.
>
> Thanks.
>
>



Relevant Pages