Incidentally, you could make all of your buttons use the same event handler and do:
And similar for the operand (although I think the correct term is 'operator') buttons...Code:Button btn = sender as Button; txtValue.Text += btn.Text;
May save you a bit of typ-o-ing...




Reply With Quote