C# Calcuator Help

Started by
10 comments, last by raidzero 12 years, 8 months ago

Haha, thanks for the code though :)

I was adding some new button like the actual numbers 0 through 9, and I also renamed some of the button. I also made sure to rename them inside my class file.
After doing this the button aren't doing what they're suppose to, in fact they do nothing at all.

If I add buttons and don't define what they do in my class file will that cause my whole program to break?


I havn't read through all replies, but I assume you use Visual Studio?

In properties window, click on the yellow thunder icon. On the right of the field "Click", check if the method name for your button click is correct. I'm not sure if it will solve your problem, but it's worth checking out.

For your second question; If you add a button on your form without creating a click event method for it, your program will not crash, and it will neither crash if you leave the click event method empety. However, it's pointless to have a button that doesn't do anything, right? smile.gif
Advertisement
Thank you so much.
I added button for the actual numbers on them, but I wanted to test if the program still worked before proceeding.
But it all works now, so I can move on.
Thanks again.

This topic is closed to new replies.

Advertisement