#pragma endregion private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) { int a,b; a=int::Parse(textBox1 ->Text); //b=int::Parse(textBox2 ->Text); } private: System::Void textBox2_TextChanged(System::Object^ sender, System::EventArgs^ e) { int a,b; a=int::Parse(textBox1 ->Text); b=int::Parse(textBox2 ->Text); } private: System::Void textBox3_TextChanged(System::Object^ sender, System::EventArgs^ e) { int a,b; a=int::Parse(textBox1 ->Text); b=int::Parse(textBox2 ->Text); textBox3 -> Text =(a+b).ToString(); textBox3 -> Text =(a-b).ToString(); } private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { int a,b; a=int::Parse(textBox1 ->Text); b=int::Parse(textBox2 ->Text); textBox3 -> Text =(a+b).ToString(); } private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) { int a,b; a=int::Parse(textBox1 ->Text); b=int::Parse(textBox2 ->Text); textBox3 -> Text =(a-b).ToString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)