Serialcoder en Français Serialcoder in English
TEL : +33 (0)9 72 13 15 17

Windows Forms FAQ

10. Windows Forms Menus

10.1 How do I clone menus, insert menus, use popup menus, etc.
10.2 How do I add a context menu to a control?
10.3 When using the ContextMenu on multiple Controls, how do I know on which Control the right click was performed?
10.4 How do menu shortcuts work?
10.5 How do I make the context menu appear only when clicked at certain portions of the Control?
10.6 How do I prevent the context menu from showing up on certain keyboard keys (like Keys.Apps)?
10.7 How do I know when a menu is closed/started so that I can refresh my status bar?
10.8 Is there an Idle event which will get fired from which I could update my menu item's enabled state?
10.9 How do I cancel a context menu programatically?
10.10 Is there an easy way to create the "Window" menu that shows the list of child forms open?
10.11 How can I work around my menu shortcuts from showing up incorrectly when I use Ctrl+Number?
10.12 How do I control the position of the context menu when it is invoked via the keyboard?
10.13 How do I disable the default context menu of a textbox?
10.14 How can I make the context menu to close after a set time interval?
10.15 How can I add an icon to my menu items?
10.16 How to add a Separator in a menu?
10.17 How can I enable the mnemonics (underline) to show when my application is launched?

 

Windows forms FAQ