This will not always work

G

G. Tarazi

thisXDocument.SetDirty(false);

thisApplication.ActiveWindow.Close(true);



If it happenes the form is in the background, it will simply fail :-(
 
G

G. Tarazi

Fixed with:

thisXDocument.SetDirty(false);
thisXDocument.View.Window.Close(true);
"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message thisXDocument.SetDirty(false);

thisApplication.ActiveWindow.Close(true);



If it happenes the form is in the background, it will simply fail :-(
 

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