• Hello and welcome to our new forums. We upgraded our forum sites to a more robust and modern system which we hope you will enjoy. Be sure to check out your profile by clicking the button on the top right and configure your preferences, signature, time zone, avatar, etc. as you wish. If you need help with using this new forum'ware try the help link on the bottom right.

    Click here to review your account now.

Are there pre-existing dialog boxes for constructing data connections?

David_Ford

Member
Joined
May 11, 2016
Messages
10
Programming Experience
10+
I'd like my users to select and define whatever data source they can. As a programmer, do I have access to those same windows that I see when I'm trying to define a data connection, without having to recreate them?

Or am I thinking about this all wrong?

Thanks.
 

David_Ford

Member
Joined
May 11, 2016
Messages
10
Programming Experience
10+

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,027
Location
Sydney, Australia
Programming Experience
10+
Are you able to use that in your own application though? I wouldn't have thought so. I would have thought that anything in that namespace would be part of VS and only accessible to those developing extensions for VS.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,027
Location
Sydney, Australia
Programming Experience
10+
Hasn't worked yet. Won't recognize the import. I spoke too soon.

Here's another link I found. Haven't tried it yet as I'm about to crash.

Everything SQL Server Compact: Using the ADO.NET Data Connection dialog in your own application ? and limiting the choice of data sources
The source code link provided by that page is no longer valid. I just did a bit of checking and it turns out that that dialogue is now available as a NuGet package.

https://www.nuget.org/packages/DataConnectionDialog/

If you haven't used NuGet before, the UI is built into VS. You can right-click the project in the Solution Explorer and select Manage NuGet Packages, then just search nuget.org for DataConnectionDialog.
 

David_Ford

Member
Joined
May 11, 2016
Messages
10
Programming Experience
10+
The source code link provided by that page is no longer valid. I just did a bit of checking and it turns out that that dialogue is now available as a NuGet package.

https://www.nuget.org/packages/DataConnectionDialog/

If you haven't used NuGet before, the UI is built into VS. You can right-click the project in the Solution Explorer and select Manage NuGet Packages, then just search nuget.org for DataConnectionDialog.

Thank you very much.
 
Top Bottom