At the time, all I was posting was some information that I stumbled across.
Having now tried it, I find that:
A reference to Microsoft.Data.ConnectionUI.dll is not necessary - only a
reference to Microsoft.Data.ConnectionUI.Dialog.dll is required.
The namespace in Microsoft.Data.ConnectionUI.Dialog.dll is actually
Microsoft.Data.ConnectionUI rather than Microsoft.Data.ConnectionUI.Dialog
so amend the 3 lines of code accordingly.
Microsoft.Data.ConnectionUI.DataConnectionDialog _dialog = new
Microsoft.Data.ConnectionUI.DataConnectionDialog();
Microsoft.Data.ConnectionUI.DataSource.AddStandardDataSources(_dialog);
Microsoft.Data.ConnectionUI.DataConnectionDialog.Show(_dialog);
I found that by simply opening the object browser in the IDE and having a
look at the namespaces exposed by the Microsoft.Data.ConnectionUI.Dialog
reference.
I have no need to use this dialog (as yet) and therfore have no need or
inclination to research this further, so you on your own from here.