EventHandler
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi! I have the following question. Is there any way to know if an event (i.e. the click of a button) has an EventHandler associated? I need to know which event have eventhandlers and which do not. Thanks, Matias
-
Hi! I have the following question. Is there any way to know if an event (i.e. the click of a button) has an EventHandler associated? I need to know which event have eventhandlers and which do not. Thanks, Matias
if(
button1
.click!=null){
//so there is some event handler associated with click
}
else{
//there is no event handler associated with click event
}
Don't forget, that's
Persian Gulf
not Arabian gulf!