

You can now use Design mode to create and edit menus for your application. To select the MenuStrip, click this icon. This creates a menu bar across the top of the Form (below the title bar) and places a MenuStrip icon in the component tray. To create a menu, open the Toolbox and drag a MenuStrip control onto the Form. Some menu items display check marks, usually indicating that multiple options on the menu can be selected at once. Menus that are not top-level menus can have shortcut keys as well (combinations of Ctrl, Shift, Alt, F1, F2, letter keys, etc.).

Menus, submenus and menu items.Īll menu items can have Alt key shortcuts (also called access shortcuts or hotkeys), which are accessed by pressing Alt and the underlined letter (for example, Alt F typically expands the File menu). A menu item that contains a submenu is considered to be the parent of that submenu.įigure 14.1. The menu that contains a menu item is called that menu item's parent menu. Notice that the top-level menus appear in the left portion of the figure, whereas any submenus or menu items are displayed to the right.
#Menustrip conventions plus#
14.1, an expanded menu from Visual Studio lists various commands (called menu items), plus submenus (menus within a menu). Menus are an integral part of GUIs, because they organize commands without "cluttering" the GUI. Although these commands depend on the program, somesuch as Open and Saveare common to many applications.
#Menustrip conventions windows#
Menus provide groups of related commands for Windows applications. Slow Chat: Visual C++: Yesterday, Today, and Tomorrow.Slow Chat: Developing Multithreaded Applications.Slow Chat: Talk with Microsoft Developer Teams.IoT, IoE, and Maker Forum (on VBForums).


I can't understnad waht this part is doing, on the right side it is MenuItem, I need menustrip1 item, is it the same?.ĮrrorĒ The name 'itm_Click' does not exist in the current contextĜ:\Users\Lost\Documents\Visual Studio 2008\Projects\School_project_work\School_project_work\Teacher\Form1.csĒ3Ĕ7 School_project_work It gives all kind of errors:ĮrrorđĜannot implicitly convert type '' to ''Ĝ:\Users\Lost\Documents\Visual Studio 2008\Projects\School_project_work\School_project_work\Teacher\Form1.csĒ2ē7 School_project_work Itm.Click += new EventHandler(itm_Click) //assign event handlers for the OnClick event ToolStripItem itm = new MenuItem(tbl.Title) //Create a new menuitem Yeah that was my mistake, but now I am getting more errors in this:
