c# - How to "Unset" Event -


If I have a combobox click event set on the Designer.cs page during programming and then at some point in the program, Depending on some condition, now I want to click on the event to set boxbox, how do I "unset" it? I've tried the combo box name. Click + = null and I have tried to set it to another dummy function which does nothing ... neither works.

Set:

  comboBox.Click + = EventHandler;  

Unset:

  comboBox.Click - = EventHandler;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -