You could have a variable in which you hold the last operator was clicked by user and whenever a button is clicked , you check; if it is operator (like + ,- , & …) and current variable’s value is not equal by new one , you update this variable else you could ignore the button clicked.
solved Basic Calculator Windows Forms C# [closed]