I have an combobox and created an SelectedIndex event that would do some things if the selected item in the combobox changes.
My question is this : I am also internally - setting the index of the selected item for the combobox in code,
FilterControl.CboSearchOption.SelectedIndex = 0;
And this fires my event for SelectedIndexChange.
I only want the SelectedIndexChange to fire if the index was changed by an USER using the application, and not when the code is setting the index.
I noticed that the textbox has an property, Modified, that is set when a USER modifies the text,but the combobox dosn't have this property.
How would I set up my event such that i can tell whether the index change was internal or external ?
My question is this : I am also internally - setting the index of the selected item for the combobox in code,
FilterControl.CboSearchOption.SelectedIndex = 0;
And this fires my event for SelectedIndexChange.
I only want the SelectedIndexChange to fire if the index was changed by an USER using the application, and not when the code is setting the index.
I noticed that the textbox has an property, Modified, that is set when a USER modifies the text,but the combobox dosn't have this property.
How would I set up my event such that i can tell whether the index change was internal or external ?