Any way to tell if an event was fired by user as opposed to via a code update?
Posted on 2009-03-31
I suspect i already know the answer to this - but the question is pretty simple.
If i have a combobox, and i change the items in code using syntax like
cmbWhatever.SelectedIndex = 5
It fires the SelectedIndexChanged event. The question is, inside that event handler, is there any way to establish whether the event was fired from code (like the example above) or whether it was fired as a result of a user action?