x***@y.com
2016-09-02 05:14:28 UTC
To add event to a control, say a button, you do:
button1.Click += new EventHandler(button1_Click);
where button1_Click is the method to handle the event.
What if I have the name of the method as a string, "button1_Click".
How do I add the event from this string?
button1.Click += new EventHandler(button1_Click);
where button1_Click is the method to handle the event.
What if I have the name of the method as a string, "button1_Click".
How do I add the event from this string?