2
I created a calculator using Windows Forms, it ran perfectly, however when clicking the operation button before the number button (to insert a value in the display) an error happens that closes my program alone.
I wanted to know how I can do so that initially the operation Buttons are disabled, and after clicking the number button is available to carry out the operation. I appreciate the help..
Within the code that the button number runs, you can put a
btnCalcular.Enabled = true;
. Since you need to leave the value ofEnabled
hisfalse
.– Daniel Dutra