I
illegal.prime
Hi all, I want to set up a ComboBox that will add all its items
whenever a user clicks on the ComboBox. I've tried doing it on the
MouseDown or OnClick events - but that seems too late. For example,
if the ComboBox previously had one item and then it ends up with two
items when the user clicks on it - it ends up with a scroll bar - that
is necessary to scroll between the two items. I've tried added a
Refresh and/or Invalidate method invocation after adding the items to
no avail.
Is there either:
a) An earlier event I can tie into - so that the control properly
rebuilds itself - i.e. no scroll bar for two items situation
b) Something I can do after adding the items to "refresh" the drop
down list - so that unnecessary scroll bar isn't added?
Thanks,
Novice
whenever a user clicks on the ComboBox. I've tried doing it on the
MouseDown or OnClick events - but that seems too late. For example,
if the ComboBox previously had one item and then it ends up with two
items when the user clicks on it - it ends up with a scroll bar - that
is necessary to scroll between the two items. I've tried added a
Refresh and/or Invalidate method invocation after adding the items to
no avail.
Is there either:
a) An earlier event I can tie into - so that the control properly
rebuilds itself - i.e. no scroll bar for two items situation
b) Something I can do after adding the items to "refresh" the drop
down list - so that unnecessary scroll bar isn't added?
Thanks,
Novice