The following examples displays the available database names in a combo box.
No example is available for C++ or JScript. To view a C# example, click the Language Filter button in the upper-left corner of the page.
ComboBox cb;
...
MimerDataSourceEnumerator databaseEnumerator = MimerDataSourceEnumerator.Instance;
DataTable dt = databaseEnumerator.GetDataSources();
cb.DataSource = dt;
cb.DisplayMember = "Database";
cb.ValueMember = "Database";
Dim cb As ComboBox
...
Dim databaseEnumerator As MimerDataSourceEnumerator.Instance
Dim dt As DataTable = databaseEnumerator.GetDataSources
cb.DataSource = dt
cb.DisplayMember = "Database"
cb.ValueMember = "Database"
.NET Framework
Version 2.0 or later