this->Controls->Add(this->textBox3);
this->Controls->Add(this->textBox2);
this->Controls->Add(this->textBox1);
this->Controls->Add(this->button1);
this->Name = L"Form1";
this->Text = L"Form1";
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
float a,b,h,S;
a=Convert::ToInt32(textBox1->Text);
b=Convert::ToInt32(textBox2->Text);
h=Convert::ToInt32(textBox3->Text);
S=((a+b)*h)/2;
label4->Text="Yuzasi S= "+S.ToString();
}
};
}
Do'stlaringiz bilan baham: |