private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (GetForm("Incident") == false)
{
Incident incidentForm = new Incident();
incidentForm.MdiParent = this;
incidentForm.Show();
}
}
public Boolean GetForm(String SearchForm)
{
foreach (Form frmChildForm in this.MdiChildren)
{
if (frmChildForm.Name == SearchForm)
{
frmChildForm.Activate();
return true;
break;
}
}
return false;
}
허당 레몬도리
@LemonDory
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!