General information
Category:
The Mere Mortals .NET Framework
Environment versions
Network:
Windows 2003 Server
hi Tim,
this is the excerpt from the dev guide that I followed.
I simply called the form from the menu.
Add a new menu bar to your application's main menu for launching the Users Form. For details, see the Help topic Launching a Form from the Main Menu.
Add the following code to the menu bar's Click event handler:
In C#:
private void ListsUsersBar_Click(object sender, System.EventArgs e)
{
mmAppDesktop.FormMgr.Show(new mmUsersForm(), this);
}
my code was a little more advanced. I used the mmbusiness northwind csharp as a guide.
here is my actual code...
private void UsersBar_Click(object sender, EventArgs e)
{
if (mmAppDesktop.SecurityEnabled)
{
if (mmAppDesktop.Localize)
{
mmAppDesktop.FormMgr.Show(new mmUsersFormLang(), this);
}
else
{
mmAppDesktop.FormMgr.Show(new mmUsersForm(), this);
}
}
else
{
MessageBox.Show("You must enable user security to access the Users form. " +
"See the MM .NET Dev Guide topic 'Enabling User Security in the Sample Application' for instructions.",
"Application Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only