PC Review


Reply
Thread Tools Rate Thread

.config files and dynamic properties

 
 
Steve Hiemstra
Guest
Posts: n/a
 
      21st Aug 2003
Hi All,

I'm sure this has been mentioned before, but I don't remember what the
solution was...

I want to use XML-based '.config' files in my Windows Form app.
Unfortunately, the '.config' file for my app < myapp.exe.config > is
'read-only' (I can't write to it).

I understand why this is so, but I still want to have a '.config' file that
is 'read/write', so I can save my: form position & size, user-settings,
etc...

< The myapp.exe.config is 'read-only', right??? >

If so, what are my options, and how do I go about creating my own '.config'
file? What are the objects that I use to manipulate it (XMLReader,
XMLWriter)?

SteveH


 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      21st Aug 2003
Steve,
The 'Configuration Management Application Block' allows you to save user
preferences to either the app.config or more appropriately something in the
users roaming profile. This 'something' can be an XML file or other file or
the Registry.

For details see:
http://msdn.microsoft.com/library/de.../html/cmab.asp

Hope this helps
Jay

"Steve Hiemstra" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I'm sure this has been mentioned before, but I don't remember what the
> solution was...
>
> I want to use XML-based '.config' files in my Windows Form app.
> Unfortunately, the '.config' file for my app < myapp.exe.config > is
> 'read-only' (I can't write to it).
>
> I understand why this is so, but I still want to have a '.config' file

that
> is 'read/write', so I can save my: form position & size, user-settings,
> etc...
>
> < The myapp.exe.config is 'read-only', right??? >
>
> If so, what are my options, and how do I go about creating my own

'.config'
> file? What are the objects that I use to manipulate it (XMLReader,
> XMLWriter)?
>
> SteveH
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypting config file that aren't web config files... Ollie Riches Microsoft ASP .NET 1 4th Dec 2008 04:59 PM
What is the significance of link.exe.config and cl.exe.config files in VS2003 wn123456@gmail.com Microsoft Dot NET Framework 0 3rd May 2007 08:45 AM
Dynamic modify App.config Agnes Microsoft VB .NET 3 9th Jan 2005 07:29 AM
installing dynamic config files =?Utf-8?B?bGFuZw==?= Microsoft Dot NET Compact Framework 1 6th Jul 2004 07:14 AM
Dynamic Properties, App.config, and <AppName>.exe.config DPlsn Microsoft Dot NET Framework 0 5th Mar 2004 03:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 AM.