Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2006

Tip: Looking for answers? Try searching our database.

VS 2003 Opens all documents with solution.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jake Montgomery - 02 Feb 2006 00:25 GMT
When I open a Solution in Visual Studio 2003, all the documents that
were opened the last time I used that solution are also opened.  I can
see how this would be a useful feature, but given the way I use VS, it
is just a hassle.  I can not find any way to turn this off.  When I open
a solution, I just want the solution, and not any documents to open.

If anyone knows a way to make it behave this way, I would appreciate it.

 
Carlos J. Quintero [VB MVP] - 02 Feb 2006 09:28 GMT
AFAIK, there is no way, but you can easily create a macro to close all
documents when a solution is loaded (EnvironmentEvents macro module).

Not tested:

  Private Sub SolutionEvents_Opened() Handles SolutionEvents.Opened
     DTE.ExecuteCommand("Window.CloseAllDocuments")
  End Sub
Signature


Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> When I open a Solution in Visual Studio 2003, all the documents that were
> opened the last time I used that solution are also opened.  I can see how
> this would be a useful feature, but given the way I use VS, it is just a
> hassle.  I can not find any way to turn this off.  When I open a solution,
> I just want the solution, and not any documents to open.
> If anyone knows a way to make it behave this way, I would appreciate it.
Jake Montgomery - 02 Feb 2006 16:41 GMT
Carlos,

   Thanks, but the whole point is the time it takes to load the docs in
the first place.  I assume this will only execute after they all load.

>AFAIK, there is no way, but you can easily create a macro to close all
>documents when a solution is loaded (EnvironmentEvents macro module).
[quoted text clipped - 5 lines]
>   End Sub
>  
Carlos J. Quintero [VB MVP] - 02 Feb 2006 17:31 GMT
Then make the macro to call the statement when the solution is closed using
the counterpart event.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Carlos,
>
[quoted text clipped - 9 lines]
>>      DTE.ExecuteCommand("Window.CloseAllDocuments")
>>   End Sub

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.