I'm starting to use visual c + +, is a bit of programming
in c and c + + but not Visual C + + and I need help to convert
a "textbox" to a variable that can be used elsewhere.
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
Decimal Cant1;
Canti1 = Decimal::Parse(textBox1->Text);
//Erase textbox
textBox1->Text = L"0";
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Decimal Cant2;
Cant2 = Decimal::Parse(textBox1->Text);
// I want to use Here Cant1 And Cant2
textBox1->Text = cant1 + cant2;
}
};
}
Thanks for Help

New Topic/Question
Reply


MultiQuote





|