I want to be able to disable or enable textchanged event when I need to.
I have made my function, but I need to dismiss event handler, how can I do that?
Here is my code:
private void textBox1_TextChanged(object sender, EventArgs e)
{
//something
}
This to add the event
this to remove the event
Or just the method name
This to add the event
this to remove the event
Hope it helps.