Create and configure menus

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
Exam Prep. Guides
70-505 Study Guide
70-526 Study Guide

1. Forms Controls

2. Integrating Data
3. Printing/Reporting
4. Enhancing Usability
5. Asynchronous Prog.
6. Forms Controls
7. Configure/Deploy

edit
Exam 70-526 Preparation Guide: Create and configure menus.



Almost every GUI application written for Windows requires a menu system of some sort. There are two menu controls supplied with .NET 2.0.

  • MenuStrip - this lets you build a menu that lives underneath the title panel.
  • ContextMenuStrip - this lets you build a context-sensitive menu, one that appears whenever you right-click on something that has a context sensitive menu attached to it.


Image:526-notepad.jpg


In the screen shot of notepad above, both types of menu can be seen. The normal menu that you associate with a windows application, is located below the title panel, and the context menu appears when you right-click in the area that you type in.

Typically a MenuStrip is used to give access to functionality common to the whole application.

A ContextMenuStrip is used to give access to a focused area of functionality.

Both of these controls are derived either directly or indirectly from the ToolStrip control.


Previous_Page_.gif Next_Page_.gif
© 2007-2008 Mike Kitchen

Today's Deals: Electronics

Personal tools