I try to set like this:
ListBox lb = new ListBox();
/* Bind datas */
lb.SelectedItem = someObject;
lb truely selected the someObject item. But it would select the 1st item at first. And that motion cause SelectedIndexChanged event which I don’t wanted.
I just want SelectedIndexChanged be called when someObject selected.
How could I do to fix this?
Use a flag on the form/control to disable the event when you don’t want it to fire.