Expression must be a modifiable lvalue (C++)
Здравствуйте, появилась небольшая проблемка. Идея програмы в том, чтобы взять значения из одного текстбокса и другого после чего их сложить и вывести в третий, но переменная t1 (в самом конце) выдает такую ошибку Expression must be a modifiable lvalue и не знаю как это решить...
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
num1++;
num2++;
num3++;
num4++;
textBox1->Text = System::Convert::ToString(num1);
textBox2->Text = System::Convert::ToString(num2);
textBox3->Text = System::Convert::ToString(num3);
textBox4->Text = System::Convert::ToString(num4);
};
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
num1--;
num2--;
num3--;
num4--;
textBox1->Text = System::Convert::ToString(num1);
textBox2->Text = System::Convert::ToString(num2);
textBox3->Text = System::Convert::ToString(num3);
textBox4->Text = System::Convert::ToString(num4);
};
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
num5++; textBox5->Text = System::Convert::ToString(num5);
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
num5--; textBox5->Text = System::Convert::ToString(num5);
}
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
num6++; textBox6->Text = System::Convert::ToString(num6);
}
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
num6--; textBox6->Text = System::Convert::ToString(num6);
}
private: System::Void button8_Click(System::Object^ sender, System::EventArgs^ e) {
num7++; textBox7->Text = System::Convert::ToString(num7);
}
private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e) {
num7--; textBox7->Text = System::Convert::ToString(num7);
}
private: System::Void button9_Click(System::Object^ sender, System::EventArgs^ e) {
num8--; textBox8->Text = System::Convert::ToString(num8);
}
private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {
num8++; textBox8->Text = System::Convert::ToString(num8);
}
private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {
t1 = System::Convert::ToDouble(textBox1->Text);
t2 = System::Convert::ToDouble(textBox5->Text);
t1 + t2 = result1;
textBox9->Text = System::Convert::ToString(result1);