all groups > dotnet framework > may 2006 >
You're in the

dotnet framework

group:

VB.NET 2005 My.Settings WebProxy / ArrayList Objects


VB.NET 2005 My.Settings WebProxy / ArrayList Objects Luke
5/31/2006 5:14:02 AM
dotnet framework:
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
RE: VB.NET 2005 My.Settings WebProxy / ArrayList Objects Doug Salomon
5/31/2006 10:24:02 AM
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

[quoted text, click to view]
AddThis Social Bookmark Button