Combobox Bug?

  • Thread starter Claudio Di Flumeri
  • Start date
C

Claudio Di Flumeri

Hi all, Iive found this bug int the VB combobox and I'd like to know if
there is a way to solve it...

Put a combobox in a form, and fill it with these 3 items:
- athens
- berlin
- chicago

then launch the program and enter in the form containing the combo. Click on
the arrow near the combo, so the dropdown list under the combo appears and
the 3 items are showed. Now, write the letter 'a' in the combo and then
click somewhere on the form WITHOUT selecting an item of the combobox. You
will see that the dropdownlist disappears and the text 'athens' is showed
and selected in the combo. So is the first item of the combo selected? No!
If you check the SelectedIndex property, the value is still -1.

Resuming, it seems there are problems when you write something in the combo
while the dropdown list is showed...

Is it a known bug? Is there a workaround?

Thanks
 
O

One Handed Man \( OHM - Terry Burns \)

I can confirm this behaviour. I think you can say that this is analogous to
having aborted the operation because you clicked outside the control.

This behaviour remains consistant in VS2005

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 
G

Guest

Claudio,
you can also break it by selecting an item and releasing the mouse off the
combo.
This is particularly apparent when running under Citrix - aaargh

guy
 
O

One Handed Man \( OHM - Terry Burns \)

You may not think so, but as I say, VS2005 behaves the same way. I think you
can view it as the Item is focused but not selected.

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 
C

Claudio Di Flumeri

But if the operation is aborted, then the text in the combo should remain
the one I've written (in my example, 'a'), and not completed with one of the
item in the combo when i click outside the control... I don't think this is
a correct behaviour
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top