Changing ComboBox State from within SelectedIndexChanged
- From: "pearsons_11114" <pearsons11114@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 3 Aug 2005 22:37:08 -0700
I often have a situation where within the SelecteIndexChanged event of a
ComboBox, I want to change the index again. For example, a changed index
triggers an action that can fail, in which case I want to return the index of
the combobox to its previous value. However, doing this within the event
handler of course triggers another invocation of the event handler. Is there
a standard idiom for handling this? I mean other than temporarily disabling
the event handler, which seems pretty kludgey. Thanks.
.
- Follow-Ups:
- Re: Changing ComboBox State from within SelectedIndexChanged
- From: Maqsood Ahmed
- Re: Changing ComboBox State from within SelectedIndexChanged
- Prev by Date: RE: Close Process
- Next by Date: Re: Changing ComboBox State from within SelectedIndexChanged
- Previous by thread: Application.Run
- Next by thread: Re: Changing ComboBox State from within SelectedIndexChanged
- Index(es):