<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Force Exit without Saving</title><link>https://www.infopathdev.com:443/forums/thread/8138.aspx</link><pubDate>Fri, 28 Oct 2005 13:24:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8138</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8138.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8138</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;If you take over the Save behavior by code, and modify the code to be:&lt;br /&gt;function XDocument::OnSaveRequest(eventObj)&lt;br /&gt;{&lt;br /&gt;	//eventObj.IsCancelled = eventObj.PerformSaveOperation();&lt;br /&gt;	eventObj.ReturnStatus = false;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The prompt to Save is now gone.&lt;br /&gt;This can be done even if the form is not Full Trust.&lt;br /&gt;&lt;br /&gt;Hope that it helps.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Force Exit without Saving</title><link>https://www.infopathdev.com:443/forums/thread/5064.aspx</link><pubDate>Fri, 28 Oct 2005 06:00:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5064</guid><dc:creator>qwer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5064</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;For my forms I do not want the users to have the ability to save under any circumstances. I am able to achieve this by using Application.ActiveWindow.Close(true) through the event handlers. However, my only glich is when a user presses the X on the window, which will prompt to save. Is there a way to take control of that (I am assuming this will require full trust again)?</description></item></channel></rss>