EnvDTE::DocumentEvents.DocumentOpend makes me suffer!
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hi, i made the event of Document_Opened(), in the event im checking the file path and according to it i choose to open or not the doc. the problem is that if i choose not to open the doc, i do Document.Close() - the doc is closed but not all of it, the tab/window of the doc is still in the windows tab. when i tried to close the doc manually with a button it worked just fine. the code is - private void DocumentEvents_DocumentOpened(Document Document) { // check something Document.Close(vsSaveChanges.vsSaveChangesPrompt); return; } what seems to be the problem?!?!