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.
 
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.
 
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.
 
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.
 
Back
Top