How to add the underlined letter for the main toolbar in MDI parent when you press the alt key ?
You need to set the UseMneumonics property on the UltraTabbedMDIManager to True and then make sure that you have an ampersand in the Text of the child form (i.e. childForm.Text="&Test";).
-Matt
I am using UltraToolbarManager
UltraToolbar1.IsMainMenuBar = True
I added the & symbol works great in Visual Studio the Underline shows up. But, upon building and running I hit the alt key and no underlined characters. I added &file, so I hit Alt+F and it does nothing. It just selects the first item in the menu. My systems setting are to always show underline shortcuts. I was unable to find a setting anywhere for usemneumonic under the toolbarmanager or the ultratoolbar.
I'm not sure I understand the problem. You say that hitting Alt-F selects the first item in the menu; this is correct behavior, you now have focus in the menu whose caption has 'f' as a mneumonic. At this point you would be able to navigate other menu items with the arrows, or press another mneumonic that is contained as an item in the newly activated menu.
When I hit the ALT key the menu gets selected. But, none of the menu items are underlined. When I hit ALT - F it does nothing !!!
Do you have the latest hotfix installed? It sounds like the mneumonics aren't set up correctly, though this could also have been something that has since been fixed. I have attached a quick sample project that I used to test this and it works for me, so it's possible that if it doesn't work on your system, something has been fixed since the version that you are using.
In my sample, press ALT+F, then one of the underlined letters that are shown in the sub-menu (i.e. 'T').
Thx very much Matt,
We have 2 projects on the go, I added the & to my captions on the second project and everything works fine. So I am guessing that something went wrong. I will end up deleteing the toobar and recreating it over again. Thanks again for the help.