C
Curious
I've added a button (button1) on my form. I click on the button, and
automatically a new method is created called, "button1_Click".
I also see that the following line of code is added as well:
button1.Click += new EventHandler(button1_Click);
Just wonder if this line of code is the same as the following:
button1.Click += new delegate(button1_Click);
automatically a new method is created called, "button1_Click".
I also see that the following line of code is added as well:
button1.Click += new EventHandler(button1_Click);
Just wonder if this line of code is the same as the following:
button1.Click += new delegate(button1_Click);