Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmSecuritySetupForm.Close() - Screwy .NET events?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01012476
Message ID:
01012696
Vues:
28
Mike,

>We have a form, CadCallForm, that has security-enabled controls. In this form we have overridden mmBaseForm_Closing. When the user launches the mmSecuritySetupForm, then closes it, the CadCallForm.mmBaseForm_Closing method gets fired. Even stranger, the "sender" is the CadCallForm - ??? Also, the overridden HookPostNavigate method gets fired as well.
>
>I looked at the code in mmSecuritySetupForm and it doesn't appear that anything is amiss. Is this something bad we've done by overriding methods? Or are the events in .NET kinda screwy?

That's odd...I just tried this in the sample application's CustomerOrdersForm. I overrode the method as follows:
protected override void mmBaseForm_Closing(object sender, CancelEventArgs e)
{
	base.mmBaseForm_Closing (sender, e);
}
I set a breakpoint in the method then ran the application. After running CustomerOrdersForm and then launching and closing the Security Setup Form, the breakpoint in mmBaseForm_Closing never gets hit.

Are you using VB .NET or C#?

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform