Recent Files list - Is there a simple way?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my Windows Forma application, I would like to add a recent file list as
part of a menu. I am thinking of adding an entry in registry whenever the
user select a file and process it and then retrieve it back from registry. I
also need to shorten the file name so that the menu's width will not be very
large. This means some parsing codes.

Since this functionality is very common, I am wondering is there a built in
function or some simple code which can accomplish this?

Appreciate your comments/suggestions.

Regards,
Paddy
 
Doesn't the FileInfo class have a few properties for create, last accessed
and so on?
 
Paddy said:
In my Windows Forma application, I would like to add a recent file list as
part of a menu. I am thinking of adding an entry in registry whenever the
user select a file and process it and then retrieve it back from registry.
I
also need to shorten the file name so that the menu's width will not be
very
large. This means some parsing codes.

Add Most Recently Used Files (MRU) List to Windows Applications
<URL:http://www.codeproject.com/csharp/mru.asp>
 
You should point out that this is only good if used on VS 2005 with
Generics...

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
You should point out that this is only good if used on VS 2005 with
Generics...
ahum... I'm so used to it now....
(more than 8 month that I work with it :-)
 
Herfried,
Thanks for directing me to a resource. I implemented a similar solution
already. I was thinking that Microsoft had these functionality already
implemented as part of the framework.

My solution is not based on a class. But, the logic is similar. I use the
registry to store the information.

Thanks.
Paddy
 
Back
Top