Perhaps I posted my question incorrectly, but i am looking to create a
connection string to a sql 2005 express database using the wizard at runtime.
Do you know how to call that one?
You will need to browse for them at C:\Program Files\Microsoft Visual
Studio 8\Common7\IDE
(assuming that your VS2005 is installed to the default location)
Step 2:
Wherever you want to use it, execute:
Microsoft.Data.ConnectionUI.Dialog.DataConnectionDialog _dialog = new
Microsoft.Data.ConnectionUI.Dialog.DataConnectionDialog();
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();
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.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.