Browse by Tags
All Tags » Menu » Using Controls (RSS)
Sorry, but there are no more tags available to filter with.
-
|
The focused control's ProcessCmdKey will be called first. 1) The Control class implementation of this method will check if there is a ContextMenu associated with the Control and if so let the context menu handle the shortcut. 2) If not handled, the...
|
-
|
Check out G. G. Arun Ganesh's article Working with Menus in C# on C# Corner . Contributed from George Shepherd's Windows Forms FAQ
|
-
|
There are MenuComplete and MenuStart events in the Form that will inform you of the corresponding menu events in the Form. Contributed from George Shepherd's Windows Forms FAQ
|
-
|
This used to be a very useful feature in MFC. You can do something similar with the System.Windows.Forms.Application.Idle event which will get fired when the app becomes Idle. Where you could parse through all the menu items and update their states. Contributed...
|
-
|
Create a "Window" menu in your MDI parent form's menu and then drop another MenuItem into it, setting its MdiList property to true. It will then expand to show all the available MDI children during runtime. Contributed from George Shepherd's...
|
-
|
When you assign Ctrl1, Ctrl2, etc. as shortcuts for MenuItems they show up as Ctrl+D1, Ctrl+D2. This can be worked around by creating and adding the menuitem through code as demonstrated below: [C#] //Create the menuitem MenuItem mymenuItem = new MenuItem...
|
-
|
contextmenu.MenuItems.Add("-"); Contributed from George Shepherd's Windows Forms FAQ
|
-
|
Usually the underline appears only after you press the Alt Key, but you can enable it by changing the Operating System Settings. On Windows XP, Right Click Desktop to bring up the Display Properties Dialog and then choose Appearance tab and then the Effects...
|
-
|
You need to implement an owner drawn menu to add icons to it. Take a look at the Ownerdraw menuitems sample on .netPlus . Contributed from George Shepherd's Windows Forms FAQ
|