Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2004

Tip: Looking for answers? Try searching our database.

Save changes dialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ElVino - 01 Oct 2004 12:45 GMT
Does anyone know how to stop the "Do you want to save the changes to form1"
dialog box popping up when you close an infopath form??
Greg Collins [MVP] - 01 Oct 2004 19:22 GMT
That dialog box appears because there have been changes. There is a flag on the XDocument object that keeps track of whether there has been any changes. This is the IsDirty flag.

If you are closing your form using code, you can set this flag equal to false, which will prevent the dailog box from appearing. But if the user presses Alt+F4 or clicks the X on the titlebar to close the form, you will cannot intervene to set the flag and prevent that message.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

Does anyone know how to stop the "Do you want to save the changes to form1"
dialog box popping up when you close an infopath form??
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.