Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > access application settings from code
 

access application settings from code

Hi ,
i stored my connection in application settings i.e. project > properties> settings tab.
Now i need to access the connection string from code

any help is appreciated,

red
red60man  Saturday, February 03, 2007 1:59 AM

Hi,red60man

Assume you have a variable named "MyConn" in the settings, then access it in codeby:

Settings.Default.myConn;

For more information, see This.

Hope it helps.
Best Regards.
Ye

Zhi-Xin Ye  Wednesday, February 07, 2007 6:18 AM

Hi,red60man

Assume you have a variable named "MyConn" in the settings, then access it in codeby:

Settings.Default.myConn;

For more information, see This.

Hope it helps.
Best Regards.
Ye

Zhi-Xin Ye  Wednesday, February 07, 2007 6:18 AM

You can use google to search for other answers

Custom Search

More Threads

• Working with DataGridView. I have an Exception as "Column 'Column' does not allow nulls."
• Open source version?
• My way of getting PocketVision working with the locally installed TaskVision Server!!!!!
• State of Affairs
• Loading the Controls Using Reflection
• "The terrarium server is experiencing temporary difficulties. This is probably why you are not receiving any animals. Please bear with us while we get the issue resolved."
• Blogs?
• Thumbnail Generation
• Please try out this software
• Hyper terminal