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

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -