yyy Posted October 13, 2004 Share Posted October 13, 2004 Hello, I'm a c# .NET developer - can anyone please tell me how to launch the favorites menu? (See screenshot) I'll really appreciate this :) Link to comment Share on other sites More sharing options...
0 Sn1p3t Posted October 13, 2004 Share Posted October 13, 2004 Not sure if there's an easier way, but you can just iterate though: C:\Documents and Settings\<username>\Favorites Link to comment Share on other sites More sharing options...
0 yyy Posted October 13, 2004 Author Share Posted October 13, 2004 Oh, Ok. I thought there's an easier way :rolleyes: Thanks anyway :) Link to comment Share on other sites More sharing options...
0 Winston Posted October 13, 2004 Share Posted October 13, 2004 Yep, basically you get a directory listing of the users favorties folder and just create a new menu item for each or whatever, im not sure how ull get the path though... Link to comment Share on other sites More sharing options...
0 yyy Posted October 13, 2004 Author Share Posted October 13, 2004 (edited) I know how to get the path but I tried it and it doesn't look the same as in the start menu. Are you sure there isn't another way of doing it? Maybe I need to use a Win API ? Also = does somebody knows of a way to launch the start menu? I think it can help me finds how to show the favorites. Here is how to do it in C++: http://www.microsoft.com/mind/0798/favorites.asp. But I want it in c# :( Edited October 13, 2004 by yyy Link to comment Share on other sites More sharing options...
0 yyy Posted October 13, 2004 Author Share Posted October 13, 2004 (edited) I also notice that if I do it with a context menu I only see the path of the files in the favorite menu and not their real names :( What can I do? Here is how: http://support.microsoft.com/default.aspx?...kb;en-us;184780 But how can I do it in C# ? Edited October 13, 2004 by yyy Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted October 13, 2004 Share Posted October 13, 2004 I also notice that if I do it with a context menu I only see the path of the files in the favorite menu and not their real names :( What can I do?Here is how: http://support.microsoft.com/default.aspx?...kb;en-us;184780 But how can I do it in C# ? 584725601[/snapback] You get to dive into the wonderful world of shell programming! Yay! Actually, you can probably find some code on Code Project that will help you get the display name. I think someone even wrote an import library for .NET that has a good portion of the shell wrapped. Ah, yes... here -> http://www.codeproject.com/csharp/csdoesshell1.asp Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted October 13, 2004 Share Posted October 13, 2004 Damned server! Link to comment Share on other sites More sharing options...
0 MrRogers Posted October 14, 2004 Share Posted October 14, 2004 Also = does somebody knows of a way to launch the start menu? I think it can help me finds how to show the favorites. 584725403[/snapback] You still interested how to launch just the start menu? It's really not hard. Link to comment Share on other sites More sharing options...
0 yyy Posted October 14, 2004 Author Share Posted October 14, 2004 Thanks for your replyies but I've already found the answer :) But thanks anyway. Link to comment Share on other sites More sharing options...
0 MrRogers Posted October 14, 2004 Share Posted October 14, 2004 Thanks for your replyies but I've already found the answer :) But thanks anyway. 584731405[/snapback] What, no answer on how you figured it out? :unsure: Link to comment Share on other sites More sharing options...
0 yyy Posted October 14, 2004 Author Share Posted October 14, 2004 Someone from another forum helped me :) It is being done by enumerating the Favorites folder content: [DEFAULT] BASEURL=http://music.msn.com/album/?album=10571479 [InternetShortcut] URL=http://music.msn.com/album/?album=10571479 Modified=60B1BC387397C401D4 IconFile=http://music.msn.com/favicon.ico IconIndex=1 Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted October 14, 2004 Share Posted October 14, 2004 Someone from another forum helped me :) It is being done by enumerating the Favorites folder content:[DEFAULT] BASEURL=http://music.msn.com/album/?album=10571479 [InternetShortcut] URL=http://music.msn.com/album/?album=10571479 Modified=60B1BC387397C401D4 IconFile=http://music.msn.com/favicon.ico IconIndex=1 584735583[/snapback] Uh... yeah, but that isn't how you got the display name. That ^^ info is contained in the file itself. How did you get the display name, or were you satisfied with just the url? Link to comment Share on other sites More sharing options...
0 yyy Posted October 15, 2004 Author Share Posted October 15, 2004 Actually the one who gave me that code decided to do what I wanted. I just asked him how to do it generally. I don't need the code now. I just showed you what he said. I decide to another thing - look at this thread: https://www.neowin.net/forum/index.php?showtopic=229916 . Link to comment Share on other sites More sharing options...
Question
yyy
Hello,
I'm a c# .NET developer - can anyone please tell me how to launch the favorites menu? (See screenshot) I'll really appreciate this :)
Link to comment
Share on other sites
13 answers to this question
Recommended Posts