|
-
May 2nd, 2013, 12:52 PM
#1
Thread Starter
Junior Member
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.
-
May 2nd, 2013, 01:36 PM
#2
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
-
May 2nd, 2013, 01:44 PM
#3
Re: trying to incorporate saving and loading of sessions
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!
-
May 2nd, 2013, 06:10 PM
#4
Thread Starter
Junior Member
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.
-
May 3rd, 2013, 09:43 AM
#5
Thread Starter
Junior Member
Re: trying to incorporate saving and loading of sessions
 Originally Posted by dunfiddlin
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.
-
May 3rd, 2013, 10:45 AM
#6
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!
-
May 3rd, 2013, 11:23 AM
#7
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|