Terry: Your answer leaves me with even more questions. For instance, I
already use the CMAB in my application to read a 'base' settings file that I
use to supply control settings. These settings come from a server file and
are NOT changed by the user - only myself. As I see it, the CMAB cannot read
anything but the MyApp.exe.config file (i.e. I would want the actual user
preferences settings stored in another XML file such as AppSettings.xml -
and the CMAB cannot be told to 'read' this file instead).
Also, even if I did use the CMAB, are you saying that the best way would be
to manually populate the CMAB? Remember, I am going to use a Property Grid
to interface the settings to the user. Would not simply serializing the
class that I 'bind' to the Property Grid suffice? Or are there bigger issues
to this?
Don't get the wrong idea - I am open to using the CMAB. I just don't see any
way for it to read anything but the base config file, and since I use that
file to supply hard-coded info to my users, I can't use it to store user
preferences. Again, not trying to answer my own question, but just curious
of the various ways I could do this (and what would be the most logical).
Thanks.
Tom
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp

Signature
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
> Terry: Your answer leaves me with even more questions. For instance, I
> already use the CMAB in my application to read a 'base' settings file that I
[quoted text clipped - 9 lines]
> class that I 'bind' to the Property Grid suffice? Or are there bigger issues
> to this?
What types of data can I store?
The Configuration Management Application Block provides support for storing
application configuration data contained in Hashtable objects as well as any
data type supported by the XmlSerializer class. In addition, the extensible
architecture of the Configuration Management Application Block means that
you can easily add support for any data structure with minimal development
effort.
HTH
> Don't get the wrong idea - I am open to using the CMAB. I just don't see any
> way for it to read anything but the base config file, and since I use that
[quoted text clipped - 4 lines]
>
> Tom
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp
> > > I am planning on adding a Preferences form to my application and using
> the
[quoted text clipped - 14 lines]
> > >
> > > Tom
Greg Burns - 28 Sep 2004 15:37 GMT
I haven't used CMAB much, but I quickly discovered it does NOT handle user
preferences out of the box. In other words, it does not store the xml file
to a user's profile folder. It can be modified to do so, but so much for
plug n play.
just my .02
Greg
>> Terry: Your answer leaves me with even more questions. For instance, I
>> already use the CMAB in my application to read a 'base' settings file
[quoted text clipped - 71 lines]
>> > >
>> > > Tom
One Handed Man \( OHM - Terry Burns \) - 28 Sep 2004 17:43 GMT
I think you will find that will most applications blocks they are a bit
'Full' of code and posibility, but sometimes can be a bit over the top. If
the OP just wants simple unsecure storage then a serialized output will do.
Isolated storage is another option but truly is a bit weird to work wotk.
Other than that there is allways the registry, or an SQL ( or like )
database storage as a possibility.

Signature
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
> I haven't used CMAB much, but I quickly discovered it does NOT handle user
> preferences out of the box. In other words, it does not store the xml file
[quoted text clipped - 52 lines]
> > message
> >> news:edEh9pVpEHA.324@TK2MSFTNGP11.phx.gbl...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp
> >> > > I am planning on adding a Preferences form to my application and
> >> > > using
[quoted text clipped - 20 lines]
> >> > >
> >> > > Tom