Disabling the close visio option

B

Brent Wherry

I want to use automation to open and close various
documents. This is OK and I can manage quite well.
However, because of the overheads of loading Visio, I want
to keep an instance of Visio running and use
Application.Visible true/false to hide the display.

My users are not very computer savvy and I can't rely on
them not to close the instance of Visio when it is visible.

Is there any way of disabling the minimize,maximise and
close buttons on the right of the control bar so that my
program has control of what is done?

Any help very much appreciated.

Brent
 
M

Mark Nelson [MS]

You should handle the QueryCancelQuit event. Visio fires this event when
the user has instructed Visio to close. You can stop this process and
perform your own action.
 

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