Since google has failed me for the past 5-10 minutes I have a quick question. I wish to pass a param value into a function that I call from a button.click Event Handler. The event is currently added using
MyButton.Click = new System.EventHandler(MyButton_click);
But I want the function to recieve:
private void MyButton_click(int ID) { ... }
How can I change my EventHandler declaration so that this can be accomplished?
Button.Clickis defined as it is, and there is no way to change it. However,will do the job.