Microsoft
Software
Hardware
Network
Question : I need to save *dynamic* application settings in .NET 2.0 Winforms
I have a form that contains a datgridview. It's called by about 100 classes, each of which use a different query to populate the datagridview, and the columns are dynamically set based on the dataset or bindingsource bound to the datagridview at runtime.
I need to allow the end user to reorder or hide/show the columns and developed a UI for it. Now, I need to save the information, which is a long string of column information, 1 for each different way the form may be set up.
I expected to be able to do something similar to resourcemanager, where you would encode .getstring("Settingname") or putstring("settingname"), that would to into the users or app's config file.
However, it appears that Microsoft in all of its sub-simian IQ, has build application settings so that you must define each and every one discretely at DESIGN time.
Is there ANY WAY AT ALL to use this in a REASONABLE manner, where I can dynamically get or put a string to a configuration key that is calculated and used at RUN TIME?
If not, is there any way to mimic this function with a few lines of code where it will not affect UAC in Vista or W7?
Please help.
Answer : I need to save *dynamic* application settings in .NET 2.0 Winforms
http://www.codeproject.com
/KB/vb/Con
figOpt.asp
x
This had the answer I needed. I hate having to reinvent the wheel but it is the only way to do this.
The settings function built into .NET will NEVER allow a programmatically defined user setting.
Random Solutions
MS Server 2003 - Missing gpedit.msc
how to match corresponding records from two tables
Store data to a record encrypted?
Windows XP sp3 file c:\windows\system32\driver<wbr />s\atapi.sy<wbr />s is open or in use by another application. close all applications and retry
convert a jpg, jpeg, bmp,tiff or gif images in a ico image
Hyper-V Core 2008R2 Cluster Issues with volumes
"waiting for all snap-ins to complete" on 2008 T/S
Microfocus cobol app in windows 7
Server 2008 R2 Memory Leak
I need to download some files via HTTP at the press of a button in MS Access - how would I go about doing this?