Results 1 to 3 of 3

Thread: [RESOLVED] Menustrip + Adding Bookmarks

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    13

    Resolved [RESOLVED] Menustrip + Adding Bookmarks

    Hey,

    So right now I am creating a browser. So, I have a menustrip and written websites (like default bookmarks). Anyway, the problem is that, if I want to add another website while I am using the browser, how can I do it?

    Thanks in advance

    P.S: If anyone has a better title, please suggest, so that future searches could find this thread.
    Last edited by Paul Shane; Aug 19th, 2012 at 05:00 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Menustrip + Adding Bookmarks

    The simplest option is to add a StringCollection on the Settings page of the project properties and then access it via My.Settings in code. The data gets saved and loaded automatically per Windows user. If you want to save more than one piece of data per item then you'll have to either use a delimiter and then join and break up the items yourself or else provide some custom method for saving and loading. To actually add a new item, you simply add a new item to the list, clear the menu in the UI and then re-call the method that loaded the list into the menu in the first place.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2012
    Posts
    13

    Re: Menustrip + Adding Bookmarks

    Thank you for your help

    I will mark this a solved.

    For those wondering for the code, you can see this video: http://www.youtube.com/watch?v=1q6MwBvUOuA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width