<p>Any information on how to display the ODBC connections dialog and get the chosen ODBC back?</p>

[{'answer_id': 64978, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>OK since no one seems to have an answer, how about iterating throught the ODBC connections by DBSource, I.e. SQLServer or MySQL</p>\n'}, {'answer_id': 65161, 'author': 'RyanBrady', 'author_id': 2555, 'author_profile': 'https://Stackoverflow.com/users/2555', 'pm_score': 2, 'selected': False, 'text': '<pre><code>// a_RootKey is Microsoft.Win32.RegistryKey \n// DSN is a class not provided in this code sample - you can see what properties are needed from the usage below.\n\nList&lt;DSN&gt; DsnList = new List&lt;DSN&gt;();\n\nMicrosoft.Win32.RegistryKey SearchKey = a_RootKey.OpenSubKey("SOFTWARE\\\\ODBC\\\\ODBC.INI\\\\ODBC Data Sources");\n\nif (SearchKey != null)\n{\n\n    foreach (string DsnName in SearchKey.GetValueNames() )\n    {    \n        if ( (string)SearchKey.GetValue(DsnName) == "SQL Server" )\n        {\n            Microsoft.Win32.RegistryKey anotherkey  = a_RootKey.OpenSubKey("SOFTWARE\\\\ODBC\\\\ODBC.INI\\\\" + DSNName);\n            DSN dsn = new DSN();\n            dsn.Name = DSNName;\n            dsn.Server = (string)anotherkey.GetValue("Server");\n            dsn.Database = (string)anotherkey.GetValue("Database");\n            dsn.Driver = (string)anotherkey.GetValue("Driver");\n\n            DsnList.Add(dsn);\n        }\n\n    }\n}\nreturn DsnList;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/64581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']