in a ASP.Net 2.0 web Application, to get a connection string from Web.config, you would write:
ConfigurationManager.ConnectionStrings("DB").ConnectionString
trying to do the same in a Windows application, would give you the error :
Name 'ConfigurationManager' is not declared
even you did import "System.Configuration"...
well, after searching i found that you need to add reference to "System.Configuration.dll" : under Project > Add refrence > .Net > select System.Configuration
Your suggestion worked the firs time as described. Thank you, Robert Watson
Thank you soooooooo much !!!!
That was VERY helpful, after an hour of searching why it seemed to work in the immediate window but not in code! Thanks
Excellent!!!!This solution worked for me too..
Worked like a charm. Thak You.
Rarely is internet help so concise or easy to implement! Thanks a bunch :)
I owe you a beer!!!!!!
Thank you, it worked perfactly fine
thank you ,that is working......