I have code that attaches an event to a form.
this.form.Resize += new EventHandler(form_Resize);
As you can see, this is done using +=. If the above code is executed two or more times,
like this:
this.form.Resize += new EventHandler(form_Resize);
this.form.Resize += new EventHandler(form_Resize);
this.form.Resize += new EventHandler(form_Resize);
this.form.Resize += new EventHandler(form_Resize);
this.form.Resize += new EventHandler(form_Resize);
Is the callback method multiple times?
How many times will we call a method
form_Resize?
Does the event fire several times if the callback method has been assigned several times to the same object?
source
share