|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Note: For Visual Studio 2008 support and other improvements, please see this update by nelveticus.
OverviewJosh Beach has written a nice little tool to manage the "Recent projects" list in Visual Studio. It allows to edit the "recent projects" list for the start page of Visual Studio. I added the following features:
I wanted to submit this as an update to Josh's article, but unfortunately he doesn't seem to be active on this site anymore. The CodeDon't look at it, the stuff I added is horrible. :) This is a straightforward C# WinForms application, with all the logic in the TaggedStringThe only class that might be of slight interest on an otherwise boring Sunday afternoon is The good citizen rule for feeding UI controls is to keep representation separate from the data. WinForms offers in most places a Unlike most WinForms controls, the
public class TaggedString<T>
{
string m_title;
T m_tag;
public TaggedString(string title, T tag)
{
m_title = title;
m_tag = tag;
}
public override string ToString() { return m_title; }
public T Tag { get { return m_tag; } }
}
The Project List Editor stores the registry path in the tag, so it's using a cbDevStudioVersion.Items.Add(
new PH.Util.TaggedString<string>(
"2005", // the string to display
@"Software\Microsoft\VisualStudio\8.0\ProjectMRUList")); // the associated data
This is by far the shortest time I spent on an article - I hope you like it anyway.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||