第一个代码是转到form5
private: System::Void btnSend_Click(System::Object^ sender, System::EventArgs^ e) {
MessageBox::Show("Updated task was sent to project manager.");
Form5^ f5 = gcnew Form5();
f5->ShowDialog();
}
但我认为,当我在form5上时,我希望回到form4是同样的事情
private: System::Void btnBack_Click(System::Object^ sender, System::EventArgs^ e) {
this->Hide();
Form4^ f4 = gcnew Form4();
f4->ShowDialog();
}
但是我遇到了很多错误,请帮帮我?
答案 0 :(得分:0)
如果你想“回去”(关闭Form5),那么你只需要关闭Form5(this.Close())。