Hello,
I created a menu with few Menu "statebutton".
File
--> Menu Checked 1
--> Menu Checked 2
I would like : When I click on the menu "Menu Checked 1" that a value is "True" and the "Menu Checked 2" is False...etc...
When I can to do ? Have you a sample code in Vb.Net ?
Regards,
Kim,
I tried your sample code and it's work !!!
I'm not see that I must call the collection "popupTool" !!!!
Thank you very much...and your answer is very speed !!!
Romuald
Romauld,
You will have to get a reference to the StateButtonTool in your Form_Load event and then set its Checked property to true. Your code might look something like:
Dim popupTool as PopupMenuTool = CType(me.UltraToolbarsManager.Toolbars(0).Tools("PopupMenuTool1"), PopupMenuTool)
Dim sTool as StateButtonTool = CType(popupTool.Tools("StateButtonTool1"), StateButtonTool)
sTool.Checked = true
~Kim~
It's works !!!! Very good....
But, can you set for example "option1" is checked in my form event Load....I want set for example by default...
Thank you for your help.
Romuald,
Make sure you have each StateButtonTool's MenuDisplayStyle property set to StateButtonMenuDisplayStyle.DisplayCheckmark.
Thank you for your help...
I tried your sample, but I'm not see the check (See you in my file sample JPG).
Why I can't see the symbol check ?
Thank You.