Answers for "c# how to disable a event"

C#
0

c# how to disable a event

object.Event -= new EventHandlerType(your_Method);
// Change your cell value
object.Event += new EventHandlerType(your_Method);
Posted by: Guest on July-22-2020
0

c# how to disable a event

bool dontRunHandler;

void Handler(object sender, EventArgs e) {
   if (dontRunHandler) return;

   // handler body...
}
Posted by: Guest on July-22-2020

Code answers related to "c# how to disable a event"

C# Answers by Framework

Browse Popular Code Answers by Language