Hi,
You would need to keep a reference to the assigned handler:
EventHandler listboxhandler = new EventHandler( theHandlerMethod );
So you can enable it:
listbox.SelectedItemChanged += listboxhandler;
or disable
listbox.SelectedItemChanged -= listboxhandler;
at your will.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Ziver MALHASOGLU" <zi*********@hotmail.com> wrote in message
news:u$**************@tk2msftngp13.phx.gbl...
Hello,
i want to temporary disable the listBox object's selectedItemChanged
event. how can i achieve this?
Regards,
Ziver