Undocumented .Net The Out Campaign: Scarlet Letter of Atheism

Thursday, November 29, 2007

Using the connection dialog from visual studio on your apps

Yeah! if you dont want to create your own database connection dialog, why not use it the one from visual studio!? there are two dlls that you can reference to do just that. with it you can get support for all provider visual studio offers, sql, oracle, access etc the best thing is that safes you loads of time so you dont have to code that stuff to find sql databases on your network (grrr...). i have attached a small project with two dialog using it visual studio controls. have fun :P. (it should be easy to use this example to add the support to the other providers).

update: the dll names are:

Microsoft.Data.ConnectionUI.dll and Microsoft.Data.ConnectionUI.Dialog.dll

they are both in the IDE folder inside of the visual studio folder.


6 comments:

dotstop said...

For this to have been a good blog post, you should have given the dll's names, and code samples ... and only after that should have said that you have a demo project for download.

dotstop said...

Oh and I can't download the project.

Daniel Portella said...

thank you for the sugestion, i have updated the entry . ^^ i got lots to learn ! thank you dotspot

Daniel Portella said...

if you need another link let me know (if you still cant download)

Kevin said...

Worked a treat dude. Saved me many hours thanks you.

Have a drink on me :-)

Daniel Portella said...

aye thank you kevin, this has save me a lot of hours too ^^

Post a Comment

Daniel Portella - http://undocnet.blogspot.com - http://twitter.co/dmportella - This posting is provided "AS IS" with no warranties, and confers no rights.