Ilkin Turk

Ilkin Turk

  • NA
  • 349
  • 161.2k

c# event

Jan 4 2013 4:54 PM
Hello

How to add an event to method parameters?

for example ->  void CreateButton(string text,string name,Color col, eventhandler){}
So, when creating dynamically any button i want add predefined event  to this button.

Button btn = new Button();
btn.click +=? the event which I added to parameter.
Thanks in advance

Answers (2)