Disable and enable buttons in C#
In your button1_click function you are using '==' for button2.Enabled == true;
This should be button2.Enabled = true;
button2.Enabled == true ;
must be button2.Enabled = true ;
.
You have a compare ==
where you should have an assign =
.
button2.Enabled == true ;
thats the problem - it should be:
button2.Enabled = true ;