I have a simple button that when clicked should change the text from Help to Hide and the windows form size. The problem i'm having is it cant find the if statement. It cant see the button3.text Help or hide. Any tips or suggestions?
private void button2_Click(object sender, EventArgs e)
{
string helpstring = "Help";
string hidestring = "Hide";
if (button3.Text == helpstring)
{
button3.Text = hidestring;
Size = new System.Drawing.Size(1106, 563);
}
if (button3.Text == "Hide")
{
Size = new System.Drawing.Size(586, 563);
button3.Text = helpstring;
}
}