Getting MySQL databases to combobox

sirius

New member
Joined
Sep 25, 2006
Messages
4
Location
Estonia
Programming Experience
Beginner
I'd like to get existing database names to Database selection combobox.

prog.png


I figure it should be done with For Each statement, but i'm not quite sure how it should work :confused: HELP :eek:
---
I think I posted this problem under wrong section. Would Somebody please place it under MySQL section?
 
Last edited:
hmm

I need to get database names from server and put them into combobox.
I don't wanna add them by myself... it should go dynamically.

(If I delete a database from server then this name woun't exist in combobox selection/If I add a database to server then this name will exist in combobox selection)

PS! I use MySQL Connector/NET

My English ins't taht good to explain what I mean exactly ;) So try to understand.
 
Last edited:
If I remember correctly there is a "SHOW DATABASES" query you can run on MySQL which will return the names that you want.

Use a dataReader and find out? I would do it for you but I have to go!
 
Back
Top