btnPrint.Click += new EventHandler(btnPrint_Click); void btnPrint_Click(object sender, EventArgs e) { your logic goes here }
Button btnnew = new Button(); btnnew.ID = "btnSubmit"; form1.Controls.Add(btnnew); btnnew.Click += btnnew_Click;
void btnnew_Click(object sender, EventArgs e) { //Add your logic when this button click fired }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)