Step 7: Displaying a Roles Form

The Framework contains an mmRolesForm class that allows you to maintain user roles:

You can subclass this Framework-level form and customize it as needed.

To display a Roles form in your application, follow these steps:

  1. Add a new menu bar to your application's main menu for launching the Roles form. For details, see the Help topic Launching a Form from the Main Menu.

  2. Add the following code to the menu bar's Click event handler:

    In C#:

    private void ListsRolesBar_Click(object sender, System.EventArgs e)
    {
    	mmAppDesktop.FormMgr.Show(new mmRolesForm(), this);
    }

    And in VB .NET:

    Private Sub ListsRolesBar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListsUsersBar.Click
          mmAppDesktop.FormMgr.Show(New mmRolesForm(), Me)
    End Sub


    Note: If you have created your own custom Roles form subclass, just replace mmRolesForms with the name of your custom class in the code shown above.

See also:
Step 8: Displaying a Security Setup Form


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