我有这样的代码:
if (AdPw != "Input") {
// remove some field!!!
this->lbAdminPwdSetting->Hide();
this->rdbAdminPwdYes->Hide();
this->rdbAdminPwdNo->Hide();
this->lbAdminPwdInput->Hide();
this->lbAdminReInput->Hide();
this->txtAdminPwdInput->Hide();
this->txtAdminPwdReInput->Hide();
this->groupBox1->Hide();
//resize ???
}
问题是隐藏某些字段后,表单中有很大的空间。因此,我想调整表单大小。我正在VS 2015中工作。