1. The Visual Studio Menu Designer enables you to create menus by using
MenuStrips, which contain ToolStripMenuItems that can have keyboard
access keys.
2. In the Menu Designer, you can set and modify the order and level of menu
items.
3. You can modify menu items in the MenuStrip’s Items Collection Editor.
4. A menu item can have a second list of choices, which is called a submenu.
5. Menu items can be disabled by setting the Enabled property = false and can
be made to appear with a check mark by setting the Checked property = true.
6. Menus should follow Windows standards, use standard keyboard shortcuts,
and include ellipses if further choices will be offered.
7. Each menu item has a Click event. The code to handle the actions for a
menu item belongs in the item’s Click event-handling method.
8. Common dialog boxes allow C# programs to display the predefined Win-
dows dialog boxes for Print, PrintPreview, File Open, File Save, Fonts, and
Colors. These dialog boxes are part of the operating environment; therefore,
it is an unnecessary duplication of effort to have each programmer create
them again.
9. Context menus, or shortcut menus, are created using a ContextMenuStrip
component and the Menu Designer. Context menus pop up when the user
right-clicks.
10. The programmer can write reusable code in general methods. These meth-
ods may be called from any other procedure in the form class and may or
may not return a value.
11. Methods that return a value must specify the data type of the return value
and set the value to return using a return statement, which sends the
value back to the location from which the method was called. If the return
type is void, no value can be returned.
To learn more about the book this website supports, please visit its Information Center.