Suspend ComboBox SelectedIndexChanged event

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I need to suspend this event while I change the SelectedItem property. I
can't have the event be fired in this case because the event will cause the
same method to be called again.

Is there anyway to do this without doing a -= to the event and resetting it
after?
 
The event is going to be fired. There's nothing you can do about it.
Unsubscribing and resubscribing as you were pointing in the end, is
precisely how you would handle the situation.

Pete
 
That's what I thought. Thanks.

Pete Davis said:
The event is going to be fired. There's nothing you can do about it.
Unsubscribing and resubscribing as you were pointing in the end, is
precisely how you would handle the situation.

Pete
 
Back
Top