DataConnection Dialog

By at July 27, 2007 12:28
Filed Under: Code

Here's how to display the DataConnection dialog at runtime allowing the user to define which datasource to connect.

ie. to display these :

ChooseDataSource

ConnectionProperties

 

In your project Add references to :

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

You can find these under : <Visual Studio>\Common7\IDE folder.

Then in your code :

DataConnectionDialog dlg = new DataConnectionDialog();
DataSource.AddStandardDataSources(dlg);
switch (DataConnectionDialog.Show(dlg))
{
    case DialogResult.OK:
        textConnectionString.Text = dlg.ConnectionString;
        break;
}

Comments

3/2/2010 4:13:28 PM #

Tours and Travels in Pune

Good post….thanks for sharing.very useful for me i will bookmark this for my future needed. thanks for a great source.

Tours and Travels in Pune India | Reply

3/3/2010 8:52:41 PM #

Optimizacija Internetne Strani

Thanks for this useful blog. BTW i found your site on google and find it is very useful.

Optimizacija Internetne Strani Slovenia | Reply

3/18/2010 5:33:39 PM #

free job classifieds

Great post….thanks for sharing such good information.very useful for me . thanks

free job classifieds India | Reply

3/20/2010 11:48:44 PM #

cheap prom Dresses

very useful for me i will bookmark this for my future needed. thanks for a great source.

cheap prom Dresses People's Republic of China | Reply

4/5/2010 7:28:46 AM #

tech reviews

Hi excellent website yea nice job our review blog will soon be adding reviews on blogs and add them to our blogs as the top best 25 blogs to visit we also do reviews on Consumer Reports reviews  all types of reviews we will get back to you

tech reviews United States | Reply

4/10/2010 2:58:05 AM #

Roomba Vacuuming Robots

Thank you for your post. I was searching this topic for a report, and your information is exactly what I've wanted.

Roomba Vacuuming Robots United States | Reply

4/21/2010 10:39:17 PM #

Hier Schreiben

Thanks for taking this opportunity to talk about "Erhan's Blog | DataConnection Dialog",  I benefit from learning about this topic. If possible, as you gain data, please update this blog with new information. Thanks, Hier

Hier Schreiben United States | Reply

4/24/2010 10:33:46 AM #

Haarentfernungen

I have been reading a lot on here the topic Erhan's Blog | DataConnection Dialog inspired me, i have picked up some  great ideas. Thanks and i hope to see more soon.

Haarentfernungen United States | Reply

5/25/2010 10:17:48 PM #

Automobile Moving  in pune

Hello I found this blog by Google; it’s by this post I found my answer for what I was looking for. Thanks for the great post looking for more quality post.

Automobile Moving in pune India | Reply

6/2/2010 10:34:11 PM #

packers and movers in pune

excellent design in your website....

packers and movers in pune India | Reply

7/3/2010 2:49:14 PM #

Basement Dehumidifiers

A breath of fresh air!

Basement Dehumidifiers Taiwan | Reply

7/7/2010 9:57:21 AM #

Odell Palmour

I have been surfingonline more than 3 hrs today, until now I by no means found any attractive article like yours. It really is pretty worth enough for me. Personally, if all web owners and bloggers made good quality content as you did, the web might be considerably more functional than ever before.

Odell Palmour Luxembourg | Reply

8/5/2010 8:30:06 PM #

pingback

Pingback from freeforfree.info

Auto Insurance is For You and Everyone Else, Too

freeforfree.info | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading