Results 1 to 6 of 6

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

  1. #1
    David_Ford is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    May 2016
    Posts
    10
    Reputation
    13

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

    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.

  2. #2
    David_Ford is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    May 2016
    Posts
    10
    Reputation
    13
    Quote Originally Posted by David_Ford View Post
    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.
    Never mind. THe second search I did brought back something useful. First one didn't. Sorry.

    https://msdn.microsoft.com/en-us/lib...iondialog.aspx

  3. #3
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,798
    Reputation
    1704
    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.

  4. #4
    David_Ford is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    May 2016
    Posts
    10
    Reputation
    13
    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

  5. #5
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,798
    Reputation
    1704
    Quote Originally Posted by David_Ford View Post
    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.

  6. #6
    David_Ford is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    May 2016
    Posts
    10
    Reputation
    13
    Quote Originally Posted by jmcilhinney View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •