Results 1 to 7 of 7

Thread: trying to incorporate saving and loading of sessions

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    16

    trying to incorporate saving and loading of sessions

    I'm creating a desktop application using visual studio express 2012, and I'm trying to make it possible for the user to save their session, and then load it again after the program has been re-opened. I learned about the propertybag object, but when I type public propertybag1 as new propertybag, it says type propertybag is not defined. I also tried to import certain references to get it to work, but without any luck. Is there someway I can use the propertybag object, or is there an alternative and easy way of preserving and loading data between instances? Thanks for any suggestions.
    Last edited by vincegrear; May 3rd, 2013 at 09:57 AM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: trying to incorporate saving and loading of sessions

    Welcome to VBForums

    Thread moved from the 'VB6 and Earlier' forum to the 'VB.Net' (VB2002 and later) forum

  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: trying to incorporate saving and loading of sessions

    Take a look at Settings
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    16

    Re: trying to incorporate saving and loading of sessions

    Thanks si_the_geek. And dunfiddlin, thanks as well. I'll look into that and let you know how it goes.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    16

    Re: trying to incorporate saving and loading of sessions

    Quote Originally Posted by dunfiddlin View Post
    Take a look at Settings
    The thing is, I want more than one session to be able to be saved at any given time, and for the user to be able to load any of those sessions from a sessions list on the main menu. So there would have to be new settings that are uniquely identified, that are added during runtime, representing an additional saved session. If user scope settings can only be added at design time as I think they are, as opposed to run time, I don't think my.settings will work for me (unless I limit the number of sessions the user can save at any given time which I'd rather not do). Is there a way to add/remove user scope settings during run time, as opposed to just changing and reading from already existing ones?
    Last edited by vincegrear; May 3rd, 2013 at 09:52 AM.

  6. #6
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: trying to incorporate saving and loading of sessions

    In that case you've really little choice but to save to file in some form or integrate a database. Both have pros and cons so you just need to work out what's going to be most suitable.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  7. #7

    Thread Starter
    Junior Member
    Join Date
    May 2013
    Posts
    16

    Re: trying to incorporate saving and loading of sessions

    I think I've found a way to make it happen. Thanks

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