话不多说直接上源码!
Thread thread = new Thread(new ThreadStart(() =>
{
Invoke(new Action(() =>
{
Sty.Show();
}));
Thread.Sleep(100);
Invoke(new Action(() =>
{
Sty.Close();
}));
}));
DataShowPanel.Show();
thread.IsBackground = true;
thread.Start();