I have created a web browser in Visual C# Express. I set up two buttons, one labeled "Favorites" and the other labeled "Add". I also set up a new settings variable via Project -> Properties -> Settings Name FavoriteList Type System.Collections.Specialized.StringCollection (Browser and locate this type) ScopeUser Value http://www.yahoo.com (to begin the list with at least one item)
My question is how do I code the buttons to the FavoriteList, with the "Favorite" button having a drop down menu, and the "Add" button adding a current URL to the list?
I'm a beginner with C#, so please be patient with me.
To add favorites, you need to create internet shortcuts using IShellLink in the user's favorites folder. To display you need to read from the folder and use IShellLink to parse it.
Search online or ask in a shell programming newsgroup if you need help in using IShellLink. MFCIE is a sample that demonstrates building a favorite dropdown menu.
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP
Marked as answer byHarry ZhuTuesday, August 18, 2009 4:02 AM