JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
So, we have, say a ComboBox, which we will limit to a databound DropDownList, DisplayMember returns a type of String where ValueMember is an Integer. (that is the type of what those properties point to)
Now, there is SelectedIndexChanged, SelectedValueChanged, even a SelectedItemChanged, and dependent on how one wishes to handle the value changing in the ComboBox you can trap any combination of the three.
However, if i say: MyCombo.SelectedValue = X
the event triggers (granted that selectedvalue did not equal X prior to that line).
If the User click on the combo box and changes values, the event triggers.
Is there a way to determine (intrinsically) whether or not the change was caused by a user action versus a programmatic one?
Thanks
Now, there is SelectedIndexChanged, SelectedValueChanged, even a SelectedItemChanged, and dependent on how one wishes to handle the value changing in the ComboBox you can trap any combination of the three.
However, if i say: MyCombo.SelectedValue = X
the event triggers (granted that selectedvalue did not equal X prior to that line).
If the User click on the combo box and changes values, the event triggers.
Is there a way to determine (intrinsically) whether or not the change was caused by a user action versus a programmatic one?
Thanks