problems with reenabling toolbars

A

Andrej

hi,

i have a problem with reenabling the toolbars.

on my onload event i disable the toolbars:

var objCommandBars = Application.ActiveWindow.CommandBars;
objCommandBars("Menu Bar").Enabled = false;
objCommandBars("Standard").Enabled = false;
objCommandBars("Formatting").Enabled = false;
Application.ActiveWindow.Close(true);

if i open infopath and want to design a new form there are no toolbats there.
what is wrong?

thanks

i put a button to close the form:

var objCommandBars = Application.ActiveWindow.CommandBars;
objCommandBars("Menu Bar").Enabled = true;
objCommandBars("Standard").Enabled = true;
objCommandBars("Formatting").Enabled = true;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top