Within a trusted InfoPath form you have the ability to toggle on and off the menu bar using the following code as an example: //Get a reference to the CommandBars collection. The CommandBars collection is //defined in the Microsoft Office 11.0 Object Library var objCommandBars = XDocument.View.Window.CommandBars; //If the menu bar is disabled, enable it if (objCommandBars(1).enabled==false) objCommandBars(1).enabled=true; //If the menu bar is enabled, disable it else objCommandBars(1).enabled=false; One note – if you turn off the menu bars they are off. This mans unless you turn them on, the next time you come back into InfoPath you will see no menus! BE CAREFUL! How did I learn this little trick you ask? Well, let’s leave it as – the hard way! 10:19:01 PM ![]() |