SyntaxFix
Write A Post
Hire A Developer
Questions
Simply add the eventhandler to the button when creating it.
button.Click += new EventHandler(this.button_Click); void button_Click(object sender, System.EventArgs e) { //your stuff... }