Close Infopath on button click with standard alert dialogue box

N

NAT

I have a cancel button on my form. I want it to function similarly as when we
click on x on top right corner of infopath.i.e. when x clicked a dialog box
appears n asks if the Infopath needs to be saved and then if we click "Yes"
then the File Save Dialog opens. If click "No" then Infopath closes and if
click "Cancel" is clicked then nothing happens.
On my Cancel button click event I have written the code
thisXDocument.View.Window.Close(True)
But in this case the dialogue box does not appear and it closes immediately
Does anybody know how can that be acheived ?
Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top