|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Trying again: app.config's don't work for me...project attachedSince I can't seem to get app.config's to work for me, and there seems to be a fair amount of confusion about what I'm actually asking, I've decided to attach a simple project that should clear things up. The project is a basic Windows Forms app that has one label that is bound to a setting in app.config, and a series of MessageBoxes that display the same setting as the label, but each time retrieved using a different method. Most methods fail, and I'm trying to find out why. I'm using the designer to add settings to the Settings.settings file, the (properly named) app.config file gets placed in the output directory when the project is built. The bound label properly shows the correct value and the correct value is also retrieved if the Properties.Settings.<settingname> syntax is used, even if the app.config is hand-edited to change the setting's value. All other methods fail. I'd really appreciate it if someone could take a look at the project and tell me what I'm doing wrong. Thanks! Keith P.S. I'm using VS2005 and C# on WinXP SP2, totally current. [attached file: 2005SettingsTest.zip] So,
No one is willing to take a look and offer some suggestions? Keith Show quote "Keith" <ke***@alh.com> wrote in message news:%23F73D4n5GHA.3920@TK2MSFTNGP02.phx.gbl... > OK, > > Since I can't seem to get app.config's to work for me, and there seems to > be a fair amount of confusion about what I'm actually asking, I've decided > to attach a simple project that should clear things up. The project is a > basic Windows Forms app that has one label that is bound to a setting in > app.config, and a series of MessageBoxes that display the same setting as > the label, but each time retrieved using a different method. > > Most methods fail, and I'm trying to find out why. > > I'm using the designer to add settings to the Settings.settings file, the > (properly named) app.config file gets placed in the output directory when > the project is built. The bound label properly shows the correct value > and the correct value is also retrieved if the > Properties.Settings.<settingname> syntax is used, even if the app.config > is hand-edited to change the setting's value. > > All other methods fail. > > I'd really appreciate it if someone could take a look at the project and > tell me what I'm doing wrong. > > Thanks! > > Keith > > P.S. I'm using VS2005 and C# on WinXP SP2, totally current. > > > > |
|||||||||||||||||||||||