Mike Mattys
mmattys at rochester.rr.com
Mon Dec 7 10:57:22 CST 2009
My understanding of Properties.Settings is that settings must be by User in order to be saved and the xml file will reside in the Local Setting/Applications directory under the user's My Documents folder. In that case, all projects under a solution could read a single xml file. We decided to use cryptographic services for the i/o of the xml by using an internal static class that reads/writes to a string collection using methods we created like bof, eof, movefirst, addnew, etc. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "jwcolby" <jwcolby at colbyconsulting.com> To: "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Sent: Monday, December 07, 2009 9:03 AM Subject: Re: [dba-VB] Application settings > OK, it appears that each project has its own set of properties. If I set > the same property in the > current project's property set then > > Properties.Settings.Default["ServerName"].ToString() > > works just fine. > > But that is not the behavior I want. I need a SOLUTION property set, > which appears to not exist? > Which perhaps would explain why those who have done this before roll their > own? > > Does anyone have code to do this so I don't have to roll my own (a.k.a. > reinvent the wheel) too? > > John W. Colby > www.ColbyConsulting.com > > > Shamil Salakhetdinov wrote: >> Hi Gustav and all, >> >> JC original request was "to access/modify" application settings AFAIU: >> <<< >> I want to create application settings for things like the server instance >> that the program will bang on, the name of my database that I save my >> custom >> UDFs and SPs in etc. It is trivial to get there in the interface but >> Google >> is not my friend tonight in discovering how to access / modify them >> through >> code. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Saturday, December 05, 2009 1:19 AM >> To: dba-vb at databaseadvisors.com >> Subject: Re: [dba-VB] Application settings >> >> Hi Shamil >> >> I guess I'm too busy today. I read it as JC wanted to create these on the >> fly ... >> >> /gustav >> >> >> <<< snip >>> >> >> >> __________ Information from ESET NOD32 Antivirus, version of virus >> signature >> database 4661 (20091204) __________ >> >> The message was checked by ESET NOD32 Antivirus. >> >> http://www.esetnod32.ru >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com >