Settings.

  • Thread starter Thread starter tc
  • Start date Start date
T

tc

Is there a way to use project resources as read and write in code? As you
would with Settings in a Host app?

If not, what is the recognised way to store application variables that need
read and write access?

Thanks.
 
Huh? You want to just get variables from one object to another? Or you
want to persist settings? Give a quick example of what you want to do and
we can probably point you in the right direction, but it sounds from how you
asked the question like you want to modify bitmap or icon or string
resources stored in the EXE directly...

Paul T.
 
Different logon, so different name, but this is what we want to achieve.

With a Standard net 2005 application the application settings page can be
used to store application variables, instead of the SaveSetting, GetSetting
functions. This is what I want.

So Basically changes made to application settings are persistent. I could
use a straight forward txt file, I can do this quite easily, but is this the
prefered method?

Thanks.

"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:[email protected]...
 
Different logon, so different name, but this is what we want to achieve.

With a Standard net 2005 application the application settings page can be
used to store application variables, instead of the SaveSetting, GetSetting
functions. This is what I want.

So Basically changes made to application settings are persistent. I could
use a straight forward txt file, I can do this quite easily, but is this the
prefered method?

Thanks.

Are you talking about the Settings tab on the project property page in
Visual Studio? .NET applications do not have a standard "settings page"
built into the application, so I can only assume you mean in Visual
Studio. If that is the case, then you need to roll your own user data
storage functionality as CF projects do not have a Settings tab in the
project properties.

--Neil

--
Neil Cowburn, MVP
Principal Partner
OpenNETCF Consulting, LLC

Join the Embedded Developer Community today at http://community.opennetcf.com
 
So what is the recognised way of doing this? XLM? Text file?

There's no one, official, standard way. It's whatever you choose, be
that a XML file, the register, a text file, a SQL Server CE database,
an XML serialized DataSet, etc, etc. The choice is your's to make.

--

Neil Cowburn, MVP
Principal Partner
OpenNETCF Consulting, LLC

Join our Embedded Developer Community today at http://community.opennetcf.com
 
Back
Top