V
VS Noob
Hello. I'm developing Windows.Forms based applications,
and each will need per-user persistent data consisting of user
preferences, last form size/position, and the like. Is there a
standard or recommended approach to this?
I'm aware that such data is often stored in an appropriate
HKCU\Software subkey and/or Application Data subfolder.
What I haven't figured out yet is if there is some convenient
..Net component or mechanism which automates and simplifies
the task.
For example, it would be sweet if common mechanism was
available to the Application and Form classes. You could set
an application property that specifies how/where to store the
data (registry or app data for example), and set a form
property specifying whether you want it to remember its last
position/size. Then everything would be automagic. If you
could add other auto-serialize objects to an application or
form class, that could be used for preferences and stuff.
OK, I'm getting ahead of myself. But you get the idea of
what I'm hoping to find... something other than a Registry
class ;-)
and each will need per-user persistent data consisting of user
preferences, last form size/position, and the like. Is there a
standard or recommended approach to this?
I'm aware that such data is often stored in an appropriate
HKCU\Software subkey and/or Application Data subfolder.
What I haven't figured out yet is if there is some convenient
..Net component or mechanism which automates and simplifies
the task.
For example, it would be sweet if common mechanism was
available to the Application and Form classes. You could set
an application property that specifies how/where to store the
data (registry or app data for example), and set a form
property specifying whether you want it to remember its last
position/size. Then everything would be automagic. If you
could add other auto-serialize objects to an application or
form class, that could be used for preferences and stuff.
OK, I'm getting ahead of myself. But you get the idea of
what I'm hoping to find... something other than a Registry
class ;-)