S
Steffen Laser
Hi group,
I have a problem that I already have posted to the german C# newsgroup.
Since nobody could help me there, I'd like to try it here again:
I set the selected item of a combobox like this:
myCombo.SelectedItem = 3;
But after that the ComboBox displays only the first entry of the list.
When I add the line
myCombo.DroppedDown = true;
before, and then step trough the code, I can see the list of the combo
dropping down, then the index (in this case 3) gets selected. After that,
the method is finished, no other code is processed. And then, when the form
comes up, there is the first item selected!
Funny, that the same code works some weeks ago - at this place nothing
changed. Does anybody have an idea what there happens? Or could it be, that
there is a problem with a MS patch or something like that?
Greetings,
Steffen.
I have a problem that I already have posted to the german C# newsgroup.
Since nobody could help me there, I'd like to try it here again:
I set the selected item of a combobox like this:
myCombo.SelectedItem = 3;
But after that the ComboBox displays only the first entry of the list.
When I add the line
myCombo.DroppedDown = true;
before, and then step trough the code, I can see the list of the combo
dropping down, then the index (in this case 3) gets selected. After that,
the method is finished, no other code is processed. And then, when the form
comes up, there is the first item selected!
Funny, that the same code works some weeks ago - at this place nothing
changed. Does anybody have an idea what there happens? Or could it be, that
there is a problem with a MS patch or something like that?
Greetings,
Steffen.