I have 5 different connectionStrings in my app.config file and would like to populate a combo with these values. How can I acheve this in VB ?
I have 5 different connectionStrings in my app.config file and would like to populate
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add a reference to the
System.Configuration dll. Then you can get all connection-strings with theSystem.Configuration.ConfigurationManagerclass:I assume that you don’t want to show the full connection string but only it’s name.