Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form close with unsaved changes dialogue
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00987241
Message ID:
00989931
Views:
46
Stephen,

>So how do I squash it in this odd case? Or do I have to do it for all forms?

You can override the form's AskSaveChanges() methods and it will never prompt the user:
public override DialogResult AskSaveChanges()
{
	return DialogResult.No;
}
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