Code:
My.Settings.Current_DB
is bound to 'cbdatabase' which is a combobox which is filled by this method:

Code:
me.cbdatabase.datasource = (From foulder in New IO.DirectoryInfo("" & Application.StartUpPath & "\Database\").GetDirectories Select (folder.Name)).ToArray
I am using the My.Settings.Current_DB to keep track of the current database being used by the client. So that throughout the program and when the program starts up it knows what the current database is.

The databases and the folders have the same name, in order to keep track of.

My problem is when the combobox is filled when the program starts, it is overwriting the current info with the first item of the info loaded into the combo box.

ex:

Current_DB is "Default"

Program starts and it loads all the database names. The database names are

Alabama
Default
Michigan
Wisonsin

Instead of maintaining the Current_DB as "Default", it updates it with the first item into the Combobox and that is "Alabama".

How do I fix this so that it maintains the correct Current_DB and not update when the Combobox is filled.

Thanks