I am trying to change the textbox text if I click the button:
private void button1_Click(object sender, EventArgs e)
{
string Tag = (string)button1.Tag;
switch (Tag)
{
case "quest1_1":
textBox1.Text = "test";
button1.Tag = "quest1_2";
break;
case "quest1_2":
textbox1.Text = "example text";
button1.Tag = "quest1_3";
break;
default:
textbox1.Text = "";
button1.Tag = "";
break;
}
}
The problem is that this code worked in another project but here it doesn't. If I start the application and click button1, nothing happens.
Can you help me with that?