title: Get Selected Item From Combobox
body: <p>I have a combobox with items from a DataTable, the ff executes when the form loads:</p>
  
  <pre><code>dbConnection = New SqlCeConnection("Data Source=Journal.sdf")
  dbDataAdapter = New SqlCeDataAdapter("SELECT * FROM setting_unit", dbConnection)
  dbDataAdapter.Fill(dbTable)
  cbxSettingsUnit.DataSource = New BindingSource(dbTable, Nothing)
  cbxSettingsUnit.DisplayMember = "name"
  cbxSettingsUnit.ValueMember = "name"
  </code></pre>
  
  <p>The method when there is a changed in the combox box:</p>
  
  <pre><code>Private Sub cbxSettingsUnit_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cbxSettingsUnit.SelectedIndexChanged
     tempString = cbxSettingsBusinessUnit.Items(cbxSettingsBusinessUnit.SelectedItem).ToString
     MessageBox.Show(tempString)
  End Sub
  </code></pre>
  
  <p>there is an error at the line:</p>
  
  <pre><code>tempString = cbxSettingsBusinessUnit.Items(cbxSettingsBusinessUnit.SelectedItem).ToString
  </code></pre>
  
  <p>How do I get the selected item from the combox box?</p>