Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedIndex >= 0 Then
MessageBox.Show(ds.Tables(0).Rows(ComboBox1.SelectedIndex).Item("EmpSal"))
End If
End Sub
|