Coolcld
asked on
How to detect the dropdown list value has changed?
Hi,
I have a dropdown box in windows form application. Dropdown style is 'dropdown list'.
When the selection in the dropdown is changed I want to find out if the newly selected value is different from the old value or the user has selected the old value again.
The events 'SelectedValueChanged' and 'SelectedIndexChanged' are fired even when the old value is re-selected. I do not want to trigger the event if the old value is chosen again. Is there any event that can detect whether the user is re-selecting same value that is currently selected? If there is no event to handle this, is there any simpe coding that will detect this?
Thanks in advance.
I have a dropdown box in windows form application. Dropdown style is 'dropdown list'.
When the selection in the dropdown is changed I want to find out if the newly selected value is different from the old value or the user has selected the old value again.
The events 'SelectedValueChanged' and 'SelectedIndexChanged' are fired even when the old value is re-selected. I do not want to trigger the event if the old value is chosen again. Is there any event that can detect whether the user is re-selecting same value that is currently selected? If there is no event to handle this, is there any simpe coding that will detect this?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i coverted the C# syntax to VB here directly ... so it may hve error
ASKER
Hi Desp and RonaldBiemans , Thanks for the solution.
I would like to divide the points between Desp and RonaldBiemans.
I would like to divide the points between Desp and RonaldBiemans.
Then click split points, and assign the points you want