TableLayoutPanel
private void Buttons_Click(System.Object sender, System.EventArgs e) { Button btn = sender as Button; string tag = Convert.ToString(btn.Tag); //if the problem is cake, and the button has "cake" as its tag, then it's correct if (tag.Equals(problem)) { //Add Score\ MessageBox.Show("Correct!"); } else { MessageBox.Show("Error"); second -= 2; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)