Re: invoke ado connection wizard at runtime C#: "Stumbled across this by accident while I was looking for something else:
Step 1:
Add references to:
Microsoft.Data.ConnectionUI.dll
Microsoft.Data.ConnectionUI.Dialog.dll
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();
Microsoft.Data.ConnectionUI.Dialog.DataSource.AddStandardDataSources(_dialog);
Microsoft.Data.ConnectionUI.Dialog.DataConnectionDialog.Show(_dialog);
You will need to have a play with it to find out how to use it because I
have no further information than that.
- Sent using Google Toolbar"
Monday, May 24, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment