title: VB | Loading SQL Query into Combobox
body: <p>I am trying to fill a combobox with a SQL Result
  I think my problem is handling the data in the datatable form.</p>
  
  <pre><code>    Dim sql As String
      Dim sqlquery As String
      Dim ConnectionString As String
      ConnectionString = "Data Source=(local);Initial Catalog=Control;Persist Security Info=True;User ID=user;Password=pass"
      sqlquery = "Select dbName from Databases"
  
      Using connection As SqlConnection = New SqlConnection(ConnectionString)
          connection.Open()
          Using conn As SqlCommand = New SqlCommand(sqlquery, conn)
              Dim rs As SqlDataReader = comm.ExecuteReader
              Dim dt As DataTable = New DataTable
              dt.Load(cmboxDatabaseName)
          End Using 'comm
      End Using 'conn
  </code></pre>
  
  <p>When I run the program I just stare at a sad empty combobox.</p>