I am making a calculator in VC++ using CLR. How do I give buttons functionality?
A: I want to have each button add a number or operator to textbox1.
B: I am basing my button pad on a basic numpad for a keyboard (for now).
C: It has the following buttons other than 0 through 9: CE, +/-, C, /, X, -, +, =, and (.).
This is my current code for the "0" button.
1 2 3 4
#pragma endregion
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
//Something needs to go here. I just don't know what.
}
Here is the code to (what I believe) declare button.