"Close All Documents" Command not working

Hi,

We are facing a typical problem in our VS package, when I have document windows open from my package and I issue the command window->"Close All Documents", all the document windows get closed if they are non-dirty but if any of the doc window from my package is dirty then nothing happens (No prompt is displayed). Even the doc windows from C++ or C# does not get closed if any of our package's doc window is dirty. We are not handling the command window->"Close All documents" in our package, Can some body please help me with this one as to what can be the reason.

thanks,

Akhil Goel




Answer this question

"Close All Documents" Command not working

  • Ek9

    When your document is dirty and you just close it via the "Close" button (with the "X") on the right hand side. Do you get a prompt

    If you close one of your dirty documents via File->Close do you get a prompt

    If you bring up the "Windows" dialog via Window->Windows... select one of your dirty document and then hit the "Close Windows" button do you get a prompt


  • Healthcare Network Admin Jerry

    Hi Josh,

    Thanks for your reply, I figured out the problem actually I was not passing value of the property VSHPROPID_SAVENAME correctly in my package for my hierarchy items, I was returning null, once I started sending the correct things worked fine and I am able to see the dialog box for dirty items.

    Thanks, for your help.

    regards,

    Akhil Goel



  • "Close All Documents" Command not working