Step 4: Setting up Security for Menu Items

This step shows you how to add an mmMenuStripExtender class to your main application form to secure your application's main menu.

  1. If you don't already have an mmMenuStripExtender class on your main application form (MainForm.cs or MainForm.vb), drag one from the Visual Studio Toolbox and drop it on a form that contains a MenuStrip. The mmMenuStripExtender class is displayed in the component tray along with the menu:

  2. With the mmMenuStripExtender1 object selected, go to the Properties Window and change the Name property to mmMenuStripExtender.

For more information on the menu extender class, see the Help topic Securing Windows Forms Menus.

Step 5: Displaying a Login Form


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 06/21/07
Comment or report problem with topic