The issue is that I want an event to tell me when the selected item changes.
The click event only tells me when they click on the control. The user
could re-select the same item that was already selected. I only care when
they actually select an item that is different from the one that was
selected previously.
Let's say I have a control with years in it. If the current selected value
is 2000, the user could click on the arrow in the control, re-select the
value of 2000. This will cause the click event to trigger. However, my
program doesn't need to do anything if they select the same value that was
already there. That is why I store the value in a module level variable on
the focus event, so I know what the "before" value is, and then on the click
event I compare the before value to the current value.
So, there is a definite difference between a click event and a change event.
That is why I said the control was lacking in functionality.
-jeffie
Quote:
> What functionality do you feel is lacking? I' haven't had any
> troubles with it (other than you use the Click event rather than
> the Change event).
> --
> ~~~~~~~~~~~~~~~~~~~~
> "For every action, there is an equal and opposite criticism."
> > Is it just me or is there no way to tell when a user changes the
> selection
> > in a ComboBox control set to style "2 - Dropdown List". It
> seems most of
> > the events are disabled in this mode.
> > To accomplish this I store the value in the control using the
> gotfocus event
> > and then on the click event, check to see if the value in the
> control is now
> > different. Shouldn't it be easier than that?
> > Let me know if I'm just a little thick in the skull or the
> ComboBox control
> > is a little lacking in functionality.
> > -jeffie