By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,474 Members | 939 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,474 IT Pros & Developers. It's quick & easy.

Combobox Bug?

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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))
--
"Claudio Di Flumeri" <cl***********@mtgc.net> wrote in message
news:2s*************@uni-berlin.de...
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

Nov 21 '05 #2

P: n/a
guy
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

"Claudio Di Flumeri" wrote:
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

Nov 21 '05 #3

P: n/a
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

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> ha scritto nel
messaggio news:eB**************@TK2MSFTNGP14.phx.gbl...
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))
--
"Claudio Di Flumeri" <cl***********@mtgc.net> wrote in message
news:2s*************@uni-berlin.de...
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


Nov 21 '05 #4

P: n/a
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))
--
"Claudio Di Flumeri" <cl***********@mtgc.net> wrote in message
news:2s*************@uni-berlin.de...
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

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> ha scritto nel
messaggio news:eB**************@TK2MSFTNGP14.phx.gbl...
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))
--
"Claudio Di Flumeri" <cl***********@mtgc.net> wrote in message
news:2s*************@uni-berlin.de...
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



Nov 21 '05 #5

P: n/a
Claudio,

This looks as a described bug from the combobox.

http://support.microsoft.com/default...b;en-us;814346

Cor
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.