I am using this on my webform, to create dynamic buttons.
Button b1 = new Button();
I would like to get this:
b1.Click+=new EventHandler(OnClick);
How can I do this? I want that the event is created automatically, it could be done with pressing twice tab or something, but I forgot it...