title: How to populate a ComboBox with a string array?
body: <pre><code>Private Sub frmQuery3_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
      frmQuery2.Hide()
      Dim columns As String = frmQuery2.GetColumns
      cmbColumnSort.MaxDropDownItems = columns.Length
      For stepper = 0 To (columns.Length - 1)
          cmbColumnSort.Items.Add(columns(stepper))
      Next
  End Sub
  </code></pre>
  
  <p>cmbColumnSort is initially an empty ComboBox. What I would like to do is fill the ComboBox with the string array columns, which shouldn't empty(it certainly isn't in frmQuery2).</p>
  
  <p>The thing is, it doesn't work. I've tried a Step Into to see whether the property GetColumns actually returns a filled array(as the array in frmQuery2 is filled), but the Step Into just skips from the third line of the above code and loads the form, awaiting further input, and leaving the ComboBox empty. Help?</p>