if (button1.Text == "button1") { button1.Text = "button2"; } if (button1.Text == "button2") { button1.Text = "button1"; }
Quote:if (button1.Text == "button1") { button1.Text = "button2"; } if (button1.Text == "button2") { button1.Text = "button2"; // <-- wrong line }
button1.Text = "button1";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)