Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible strangeness with MMUsersForm
Message
De
17/02/2009 11:22:27
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
17/02/2009 10:32:07
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01382344
Message ID:
01382385
Vues:
37
>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);
> }
>
> }
> }

OK, I see all that now in the Dev guide and in the sample application. I also noted that when I turned on security in the sample application it works OK. Can you post the stack trace from the exception? Maybe there is more of a clue in that. I can try in a bit to add security like this in an application to see if I duplicate it. Also, are you using the Localization? If not, is localization turned off in the app.config? Just checking to verify which line of code is running in your code above.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform