Exiting an InfoPath application without popup MessageBox?

K

knyada

Hi I can any one help me out, I have an InfoPath form of which exit the
application completely of the end user click on the window close button
without the MessageBox asking the user if he/she want to save the form.
 
F

Franck Dauché

Hi,

The answer is yes and no. If you are dealing with code behind your InfoPath
form, you can set the IsDirty flag to false to force any changes to be
ignored by IP. Your Dialog box will then go.
But, if you user is using the X at the top right corner of the form by
example, you won't be able to prevent the message from poping up.

Hope that it helps.

Franck Dauché
 
A

Agni

One other way is to disable file save option in the Form Options. But you
have to write your own save code for this.
 
Top