Computers/Language
2012. 11. 16. 16:04
http://redppiriri.tistory.com/4
private void ConfigToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (Form frm in Application.OpenForms)
{
if (frm.Name == "frmConfig")
frm.Activate();
return;
}
frmConfig configForm = new frmConfig();
configForm.Show();
}
foreach (Form form1 in Application.OpenForms)
{
if (form1.GetType() == frm.GetType())
{
.....
}
}
// 폼존재여부에 따라서 생성과 파기
if (!FrmisExist)
{
frm.Show();
frm.Activate();
}