Hy, I have a question...
I want for my application to select on startup the database i want...I thought about keeping my database name in a combo box and when i run my application i will select what i want...but....how can i concatenate in app.config the ConnectionString?Does anyone Know?
Thanks.
stefilina
0
Newbie Poster
Recommended Answers
Jump to PostWrite the code as following it will display the database name but also hold the connection string of database in as value member.
comboBox1.ValueMember=ConnectionString; comboBox1.DiaplayMember=NameOfDataBase;
All 3 Replies
abelLazm
183
Postaholic
Saikalyankumar
-2
Junior Poster in Training
Mitja Bonca
557
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.