|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB.NET 2005 My.Settings WebProxy / ArrayList ObjectsI am trying to save a WebProxy object within the My.Settings user setting
with a type of WebProxy. Its seems that the setting is not persisting when the application is restarted even when the My.Settings.Save() is called. Is there any special way to save this object within the My.Settings? I understand I could just re-create the object using the address and credentials when the settings are loaded. Also, we have tried saving an ArrayList stored full of custom objects and the same issue occurs. However an ArrayList full of Integer objects is stored fine? Can someone please help me here? We would like the Array of custom objects stored within a single My.Settings property. I have searched the documentation regarding the My.Settings user settings and could not locate any info on the limitations etc? Any code would be great. Thanks. Hi Luke,
I had similar problem recently - trying to save an arraylist full of my structures with my.settings. Here's the thread where I posted my original problem and the resolution that I've come up with... http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.dotnet.framework.windowsforms&tid=0f1ff8fb-95c2-472a-becb-6e3196dbef16&cat=en-us-msdn-dotnet-frmwrk&lang=en&cr=US&sloc=en-us&m=1&p=1 Hope this helps, Doug Show quote "Luke" wrote: > I am trying to save a WebProxy object within the My.Settings user setting > with a type of WebProxy. Its seems that the setting is not persisting when > the application is restarted even when the My.Settings.Save() is called. > > Is there any special way to save this object within the My.Settings? I > understand I could just re-create the object using the address and > credentials when the settings are loaded. > > Also, we have tried saving an ArrayList stored full of custom objects and > the same issue occurs. However an ArrayList full of Integer objects is > stored fine? Can someone please help me here? We would like the Array of > custom objects stored within a single My.Settings property. > > I have searched the documentation regarding the My.Settings user settings > and could not locate any info on the limitations etc? Any code would be > great. Thanks. |
|||||||||||||||||||||||