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 / May 2006

Tip: Looking for answers? Try searching our database.

Close Infopath on button click with standard alert dialogue box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NAT - 22 May 2006 19:18 GMT
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
Kalyan Reddy - 23 May 2006 08:06 GMT
Hi NAT,

Read the thread below, might hep you
http://infopathdev.com/forums/topic.asp?TOPIC_ID=194

Signature

Kalyan Reddy
Visit http://www.autonomysystems.com

> 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
[quoted text clipped - 6 lines]
> Does anybody know how can that be acheived ?
> Thanks in advance
 
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.