Home All Groups Group Topic Archive Search About

Re: Cannot read in the keys from app.config (.NET 2.0)

Author
21 Feb 2006 5:09 PM
HowardB
Have a look in the 'Settings.Designer.cs' file generated in your app to
get a better idea of what is going on - meanwhile try

txtSettings.Text = {your
namespace}.Properties.Settings.Default.MySetting;

Have fun
Howard.

Author
21 Feb 2006 5:45 PM
Project2501a
hey Howard, thanks for the reply. Works great! but isn't this kinda of
lame? i would like to know why my set up doesn't work
Author
21 Feb 2006 5:45 PM
Project2501a
hey Howard, thanks for the reply. Works great! but isn't this way,
kinda of lame? i would like to know why my set up doesn't work
Author
22 Feb 2006 9:06 AM
HowardB
I'd much rather have a named method that would fail at compile time,
that a string indexer that might fail at runtime!!
H

AddThis Social Bookmark Button