When you create the button in your code add describe the event handler, something like:
Button btn = new Button();
...
btn.Click += new EventHandler(commonEventHandlerMethodForAllButtons);
If you like, you can use
Tag
property to add information about the button which you can use in the method handling the event. For an example:
enum Action {
Some = 1,
Other = 2
}
...
void SomeMethod() {
Button btn = new Button();
btn.Tag = Action.Some;
btn.Click += new EventHandler(common_Click);
...
}
void common_Click(object sender, EventArgs e) {
switch (((Action)(Button)sender).Tag) {
case Action.Some:
break;
case ...
}
}