G
Guest
I have the following code:
.cboBox1.Items.AddRange(New Object() {"A", "B", "C"})
.cboBox2.Items.AddRange(New Object() {"A", "B", "C"})
.cboBox6.Items.AddRange(New Object() {"A", "B", "C"})
.cboBox1.SelectedIndex = 0
.cboBox2.SelectedIndex = 1
.cboBox6.SelectedIndex = 2
When this form opens, A, B, and C are all highlighted in their respective
controls. I have tried the following ways to unhighlight the text but
without success.
.cboBox6.SelectionLength = 0
.cboBox6.Select(0, 0)
.cboBox1.Focus()
Is there a way to unhighlight the text in the comboboxes that do not have
focus?
.cboBox1.Items.AddRange(New Object() {"A", "B", "C"})
.cboBox2.Items.AddRange(New Object() {"A", "B", "C"})
.cboBox6.Items.AddRange(New Object() {"A", "B", "C"})
.cboBox1.SelectedIndex = 0
.cboBox2.SelectedIndex = 1
.cboBox6.SelectedIndex = 2
When this form opens, A, B, and C are all highlighted in their respective
controls. I have tried the following ways to unhighlight the text but
without success.
.cboBox6.SelectionLength = 0
.cboBox6.Select(0, 0)
.cboBox1.Focus()
Is there a way to unhighlight the text in the comboboxes that do not have
focus?