Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# how to disable a event

bool dontRunHandler;

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

   // handler body...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #disable #event
ADD COMMENT
Topic
Name
8+8 =