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
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