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 :-(
 
Top