Button cmdName = new Button(); cmdName+= new System.EventHandler(cmdName.Click); private void cmdName_Click(object sender, System.EventArgs e) { // Do something }
AddButton(posx, posy, "Something", ClickEventName) function ClickEventName ShowMsg("Clicked on the button!") end
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)