我正在使用Application.Run()顯示一個winForm;在ShowForm()中,如下所示。如何顯示使用線程的模態窗體。 C#
我在ShowSplash()中使用ShowForm()與線程。
我在另一個窗體調用ShowSplash(),可以說'Form1'。 如何將它顯示爲Modal到Form1?
static private void ShowForm()
{
splashForm = new frmWorking();
Application.Run(splashForm);
}
static public void ShowSplash()
{
Thread thread = new Thread(new ThreadStart(frmWorking.ShowForm));
thread.Start();
}
有這樣的事,作爲谷歌,C#閃屏...... http://www.codeproject.com/Articles/5454/A-Pretty-Good-Splash-Screen- in-C http://crazorsharp.blogspot.co.uk/2009/06/creating-splash-screen-in-net-with.html – Lloyd 2012-03-29 06:05:49
實際上,它顯示我的應用何時運行。 – aWebdesigner09 2012-03-29 06:16:20