111,120
社区成员
发帖
与我相关
我的任务
分享int count = 0;
private void button1_Click(object sender, EventArgs e)
{
NewMail newMail = new NewMail();
newMail.Show();
}
private void button2_Click(object sender, EventArgs e)
{
while (Application.OpenForms.Count > count)
{
Application.OpenForms[count].Close();
}
}
private void Form1_Load(object sender, EventArgs e)
{
count = Application.OpenForms.Count;
}
newMail.Show(this);