How to add "Recent Files" list? How to create file shortcut? 
Author Message
 How to add "Recent Files" list? How to create file shortcut?

With VC++ 6.0, one can create a MDI or SDI application with "Recent Files"
list code generated automatically in "File" menu by the MFC wizard.

Is there a simlilar wizard in VS.NET C# that generates code for "Recent
Files" list in the File menu bar?

If not, what's the easiest way to do that?

The folder path obtained using RecentFiles enumeration does not seem to be
visible in Wndows explorer, and the files visible from Path.GetFiles()
method in that folder are all *.lnk files. This brings another question: how
to create file shortcuts in C#? Can one create file shortcuts without going
through Windows Shell interface?

Angie



Sat, 28 May 2005 14:44:51 GMT  
 How to add "Recent Files" list? How to create file shortcut?
Hi Angie,

You will need to write your own recent file class. It can save information
in XML file or registry. The XmlDocument and XmlNode classes may be what
you need. To access registry, you can check the Microsoft.Win32.Registry
class.

Hope this helps.

Best Regards,
Leo Chen

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: How to add "Recent Files" list? How to create file shortcut?
| Date: Mon, 9 Dec 2002 22:44:51 -0800
| Organization: laserlink.net
| Lines: 17

| X-Trace: news.laserlink.net 1039506932 27629 64.105.67.192 (10 Dec 2002
07:55:32 GMT)

| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Path:
cpmsftngxa09!cpmsftngxa10!tkmsftngp01!newsfeed00.sul.t-online.de!t-online.de
!news.stealth.net!news.stealth.net!66.250.146.10.MISMATCH!newshosting.com!ne
ws-xfer1.atl.newshosting.com!uunet!dca.uu.net!ash.uu.net!news.laserlink.net!
not-for-mail
| Xref: cpmsftngxa09 microsoft.public.dotnet.languages.csharp:115255
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| With VC++ 6.0, one can create a MDI or SDI application with "Recent Files"
| list code generated automatically in "File" menu by the MFC wizard.
|
| Is there a simlilar wizard in VS.NET C# that generates code for "Recent
| Files" list in the File menu bar?
|
| If not, what's the easiest way to do that?
|
| The folder path obtained using RecentFiles enumeration does not seem to be
| visible in Wndows explorer, and the files visible from Path.GetFiles()
| method in that folder are all *.lnk files. This brings another question:
how
| to create file shortcuts in C#? Can one create file shortcuts without
going
| through Windows Shell interface?
|
| Angie
|
|
|



Mon, 30 May 2005 16:47:19 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Adding to Recent File List

2. Add to Recent files list

3. "create shortcut"

4. adding ".cc" file extension for builds

5. "Unable to Create File Buffer" error

6. EZ: File.Copy("url", local-file)?

7. An "office shortcut bar" like dialog

8. Adding recent files to MENUITEM

9. adding recent files to menu item

10. Init without DocCreation, Adding recent files

11. Recent File List :URGENT

12. recent file list problem

 

 
Powered by phpBB® Forum Software