<?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: Disable Menu Bar Control &amp;quot;Save&amp;quot;</title><link>https://www.infopathdev.com:443/forums/thread/10864.aspx</link><pubDate>Thu, 04 Jan 2007 17:22:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10864</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10864</wfw:commentRss><description>Hi Philippe,&lt;br /&gt;&lt;br /&gt;If you are going to use the CommandBars object instead of the function in the Form Options dialog, then you will need to disable each one of the Save buttons individually.  CommandBars disables a specific button, not a functionality (such as save), so you will have to have a line for every one of the save buttons that you wish to disable.</description></item><item><title>Disable Menu Bar Control "Save"</title><link>https://www.infopathdev.com:443/forums/thread/5997.aspx</link><pubDate>Thu, 04 Jan 2007 09:40:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5997</guid><dc:creator>zaphi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5997</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have some problems with disabling of menu bar control "Save"&lt;br /&gt;&lt;br /&gt;I have written the following code:&lt;br /&gt;    var objCommandBars = Application.ActiveWindow.CommandBars;&lt;br /&gt;    objCommandBars.FindControl(1,3).Enabled = false;&lt;br /&gt;&lt;br /&gt;The Save Button in the Standard toolbar is disabled -&amp;gt; good&lt;br /&gt;Tha Save Control in the Menu File is not disabled -&amp;gt; not good&lt;br /&gt;&lt;br /&gt;The other problem is, that the Save button is also disabled in design mode.&lt;br /&gt;&lt;br /&gt;Does anybody have any suggestion. I don't want to use the check-box "Save and SaveAs" in the form options, because I get a problem by closing the form (no warning to save the changes). See also my other topic:&lt;a href='http://infopathdev.com/forums/topic.asp?TOPIC_ID=4048' target='_blank' title='http://infopathdev.com/forums/topic.asp?TOPIC_ID=4048'&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=4048&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=4048&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;Philippe&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>