主窗体的panel 中放着子窗体 如何让主窗体拖动大小 子窗体也大小也改变
主窗体的panel 中放着子窗体 如何让主窗体拖动大小 子窗体也大小也改变
this.bcpEditArea.Controls.Clear();
fdrug.ucNumTxtAmount.Text = "";
fdrug.ucNumTxtUAmount.Text = "";
//判断窗体是否变大
if (SizeHeight > 762)
{
fdrug.TopLevel = true;
this.pnlTab3.Visible = false;
fdrug.Width = 500 + PlusWidth;
fdrug.Height = 591 + PlusHeight;
fdrug.flgDrugAdptDiv.Width = 473 + PlusWidth;
fdrug.flgDrugAdptDiv.Height = 411 + PlusHeight;
}
//医師の場合
if (GlobalInfo.SystemModeInfo.SystemMode == 1)
{
Set_PnlPositionAndVisible(false);
fdrug.TopLevel = false;
fdrug.FormBorderStyle = FormBorderStyle.None;
this.bcpEditArea.Controls.Add(fdrug);
fdrug.Show();
}
//看護師の場合
else if (GlobalInfo.SystemModeInfo.SystemMode == 2)
{
Set_PnlPositionAndVisible(true);
this.flgInstructionsDo.Width = 442;
}