G
Guest
I am making a combobox, where I add items to the combobox as they are
required, as the user scrolls to the top or bottom of the list of items. It
is a sorted combobox. Scrolling down works fine, but when they scroll up, the
positioning gets confused. If the ComboBox contains record 60-79, and they
pressed Up on 60, I trap the keypress and add records 40-59. I set the
SelectedItem to 59, and the SelectedIndex to its index, and the textbox field
contains 59, but when they press up or down, the pulldown jumps to record 39
or 41, as if it was on record 40, not 59. Does this make sense to anyone?
Assuming not, I would just like to close the pulldown and open it again
under program control. Is there a ComboBox method that allows the program to
open and close the pulldown (e.g. when the pulldown is open, you see the list
of possible values, with a scroll bar line on one, based on the value in the
textbox. When the pulldown is closed, you just see the textbox with the arrow
to press to see the pulldown).
Thanks.
required, as the user scrolls to the top or bottom of the list of items. It
is a sorted combobox. Scrolling down works fine, but when they scroll up, the
positioning gets confused. If the ComboBox contains record 60-79, and they
pressed Up on 60, I trap the keypress and add records 40-59. I set the
SelectedItem to 59, and the SelectedIndex to its index, and the textbox field
contains 59, but when they press up or down, the pulldown jumps to record 39
or 41, as if it was on record 40, not 59. Does this make sense to anyone?
Assuming not, I would just like to close the pulldown and open it again
under program control. Is there a ComboBox method that allows the program to
open and close the pulldown (e.g. when the pulldown is open, you see the list
of possible values, with a scroll bar line on one, based on the value in the
textbox. When the pulldown is closed, you just see the textbox with the arrow
to press to see the pulldown).
Thanks.