#region 开启线程,打开窗体
public Form form;
public void OpenChildForm()
{
Thread thread = new Thread(showform);
thread.IsBackground = false;
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
}
void showform()
{
Application.Run(form);
}
#endregion
public Form form;
public void OpenChildForm()
{
Thread thread = new Thread(showform);
thread.IsBackground = false;
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
}
void showform()
{
Application.Run(form);
}
#endregion