Click here to Skip to main content
15,860,844 members
Articles / Programming Languages / Visual Basic

Visual Studio MRU List Editor Application

Rate me:
Please Sign up or sign in to vote.
3.33/5 (9 votes)
29 Jul 2007CPOL2 min read 45.4K   488   27   13
A small application that cleans up your Most Recently Used Projects and Files lists
I couldn't just right click and delete projects from the MRU projects list on the VS start page, so I wrote this small application. All it does is it edits the Registry a tiny bit and removes the unwanted projects.

Screenshot - VSMRUListEditor1.gif

Introduction

Do you often create little applications to test out new techniques, user controls, or third party components? In that case, your list of Most Recently Used projects in the Visual Studio start page most likely contains a lot of projects named "Test", "Test2", etc. They take up a lot of room, and make it harder to locate the "important" projects. And of course, when your tests are done, you don't need them anymore...

It really bugged me that I couldn't just right click and delete projects from the list, so I wrote this small application. All it does is it edits the Registry a tiny bit and removes the unwanted projects.

I wrote it for Visual Studio 2005, but I've added some code so that you should be able to use it with Visual Studio 2002 and 2003 too. I can't test that, though, so please let me know if it doesn't work.

Actually, I wanted to make the program work with VS6 too, but that's a little more complicated as the list is stored in different places depending on the program language used. But, here is a similar program that can do it for VB:

Using the Application

Screenshot - VSMRUListEditor2.gif

Very easy - uncheck the projects and files you want to remove, and hit the Apply button! You select your version of Visual Studio using the drop down combo at the top. If you have more than one version installed, that's no problem at all...

Be aware: Visual Studio has to be closed when you use the program. Otherwise, you risk VS recreating the MRU List when you shut it down...

Points of Interest

For fun, I used Lukasz Swiatkowski's Glass Button control. I think it's really nice looking! You can find it here.

For the listview sorting, I used mav.northwind's brilliant code that can be found here. That code requires an inherited listview component, and seeing that it was done in C# and I really didn't have the time to rewrite it in VB, I simply broke out the component and compiled it in a separate DLL and added it to my project.

History

  • Version 2.2 - 2007-07-30 - Fixed an irritating problem: If you delete the last loaded solution, you will get an error when starting up VS saying: "C:\blablabla\lastloadedsolution.sln" could not be loaded - do you want to remove it from the MRU list?". But the solution was already removed from the MRU list. Turns out that there is another Registry key called "LastLoadedSolution" that needs to be edited.
  • Version 2.1 - 2007-07-24 - Added automatic detection and unchecking of deleted or missing projects and files
  • Version 2.0 - 2007-07-18 - Added the possibility to edit the MRU files too. Plus, added the possibility of reordering the items using drag and drop. Source published
  • Version 1.0 - 2007-06-17 - Initial release

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Sweden Sweden
Born in Copenhagen, Denmark
Have been living in Paris, France and L.A., The United States
Now live in Stockholm, Sweden

Started programming when I got my first VIC 20, and a few months later on Commodore 64. Those were the days!

Studied programming at the Copenhagen Engineering Academy

Professional console, winforms and webforms programming in Comal, x86 Assembler, Fortran, Pascal, Delphi, Visual Basic 3 through 6, Classic ASP, C# and VB.NET

I now work as Senior Microsoft Dynamics AX and .Net programmer, and have a number of projects in various states of progress to work on in the spare time...

Comments and Discussions

 
QuestionAny chance you have found the need to create a knob so that when it rotates, it displays a different image? Pin
miguelito13-Feb-17 8:50
miguelito13-Feb-17 8:50 
NewsArticle deprecated! Pin
Johnny J.26-Jun-13 2:25
professionalJohnny J.26-Jun-13 2:25 
GeneralAnother alternative to cleanup MRU List Pin
Sanjay Bhatia2-Aug-07 7:30
Sanjay Bhatia2-Aug-07 7:30 
GeneralRe: Another alternative to cleanup MRU List Pin
Johnny J.5-Aug-07 23:11
professionalJohnny J.5-Aug-07 23:11 
GeneralI gave u a five(5) Pin
Seun30-Jul-07 6:06
professionalSeun30-Jul-07 6:06 
GeneralRe: I gave u a five(5) Pin
Johnny J.30-Jul-07 7:43
professionalJohnny J.30-Jul-07 7:43 
GeneralThe sauce is available now... [modified] Pin
Johnny J.18-Jul-07 1:39
professionalJohnny J.18-Jul-07 1:39 
GeneralWish List Pin
Ontracanoer24-Apr-07 5:03
Ontracanoer24-Apr-07 5:03 
GeneralRe: Wish List Pin
wk63324-Apr-07 5:55
wk63324-Apr-07 5:55 
GeneralRe: Wish List Pin
Johnny J.18-Jul-07 1:37
professionalJohnny J.18-Jul-07 1:37 
Questionworked on vs2002. no source though? Pin
alreadybeenregisteredpleasechooseanother19-Apr-07 14:24
alreadybeenregisteredpleasechooseanother19-Apr-07 14:24 
QuestionSource Code? Pin
Tom119-Apr-07 3:21
Tom119-Apr-07 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.