Hi,
I have some problems with disabling of menu bar control "Save"
I have written the following code:
var objCommandBars = Application.ActiveWindow.CommandBars;
objCommandBars.FindControl(1,3).Enabled = false;
The Save Button in the Standard toolbar is disabled -> good
Tha Save Control in the Menu File is not disabled -> not good
The other problem is, that the Save button is also disabled in design mode.
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:
http://infopathdev.com/forums/topic.asp?TOPIC_ID=4048Thanks.
Philippe