Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmSecuritySetupForm.Close() - Screwy .NET events?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01012476
Message ID:
01012696
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform