Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using the Windows/.Net Datasource Configuration Wizard [Control]

Using the Windows/.Net Datasource Configuration Wizard [Control]

Scheduled Pinned Locked Moved Visual Basic
csharpquestionworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mbire
    wrote on last edited by
    #1

    Hi guys, I am writing a small VB.Net 2005 program that should connect to different databases at run time. I would like to include the windows/.net datasource configuration wizard in the system and get the connection string from the wizard control but I cant find control or way to achieve the goal, is it possible or maybe is there a workaround? Thanks for you assistance.:confused::confused::confused:

    M D 2 Replies Last reply
    0
    • M Mbire

      Hi guys, I am writing a small VB.Net 2005 program that should connect to different databases at run time. I would like to include the windows/.net datasource configuration wizard in the system and get the connection string from the wizard control but I cant find control or way to achieve the goal, is it possible or maybe is there a workaround? Thanks for you assistance.:confused::confused::confused:

      M Offline
      M Offline
      Mbire
      wrote on last edited by
      #2

      Got the answer to my question Add references of 2 assemblies, Microsoft.Data.ConnectionUI.dll and Microsoft.Data.ConnectionUI.Dialog.dll, located at C:\Program Files\Microsoft Visual Studio 8\Common7\IDE which by the way are not redistributable, then in code you have something like this... Imports Microsoft.Data.ConnectionUI ... ... Dim myDataConnectionDialog As New DataConnectionDialog DataSource.AddStandardDataSources(myDataConnectionDialog) If DataConnectionDialog.Show(myDataConnectionDialog) = Windows.Forms.DialogResult.OK Then txtSourceConnection.Text = myDataConnectionDialog.ConnectionString End If Thanks to all who cared to think about it:-D:-D:-D:-D:-D:-D:-D:-D:-D -- modified at 3:00 Thursday 6th September, 2007

      1 Reply Last reply
      0
      • M Mbire

        Hi guys, I am writing a small VB.Net 2005 program that should connect to different databases at run time. I would like to include the windows/.net datasource configuration wizard in the system and get the connection string from the wizard control but I cant find control or way to achieve the goal, is it possible or maybe is there a workaround? Thanks for you assistance.:confused::confused::confused:

        D Offline
        D Offline
        DigiOz Multimedia
        wrote on last edited by
        #3

        That is good information to know! I have hear of people distributing connection strings by reading it from text file, XML file, INI file or a DSN file (.udl). I have to try your way. Thanks for the update. :)

        Pete Soheil DigiOz Multimedia http://www.digioz.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups