簡單的啟動窗體
更新時間:2006年10月26日 00:00:00 作者:
復制代碼 代碼如下:
public static System.Threading.Thread thread;
public static ce.About welcomefrm;
[STAThread]
static void Main()
{
System.Threading.ThreadStart start=new ThreadStart(ce.ceStart.splashForm);
thread=new Thread(start);
thread.Start();
//做要做的事
//運行主程序
System.Windows.Forms.Application.Run(new ce.Forms.coolmain());
}
static void splashForm()
{
ce.ceStart.welcomefrm =new About();
ce.ceStart.welcomefrm.Show();
Application.DoEvents();
ce.ceStart.welcomefrm.Activate();
thread.Join(2000);
ce.ceStart.welcomefrm.Close();
ce.ceStart.thread.Abort();
}
public static ce.About welcomefrm;
[STAThread]
static void Main()
{
System.Threading.ThreadStart start=new ThreadStart(ce.ceStart.splashForm);
thread=new Thread(start);
thread.Start();
//做要做的事
//運行主程序
System.Windows.Forms.Application.Run(new ce.Forms.coolmain());
}
static void splashForm()
{
ce.ceStart.welcomefrm =new About();
ce.ceStart.welcomefrm.Show();
Application.DoEvents();
ce.ceStart.welcomefrm.Activate();
thread.Join(2000);
ce.ceStart.welcomefrm.Close();
ce.ceStart.thread.Abort();
}
相關(guān)文章
WPF使用ValidationRules對MVVM架構(gòu)數(shù)據(jù)驗證
這篇文章介紹了WPF使用ValidationRules對MVVM架構(gòu)數(shù)據(jù)驗證的方法,文中通過示例代碼介紹的非常詳細。對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2022-01-01ASP.NET?Core中Razor頁面的Handlers處理方法詳解
本文詳細講解了ASP.NET?Core中Razor頁面的Handlers處理方法,文中通過示例代碼介紹的非常詳細。對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2022-02-02使用vs2022在.net6中調(diào)試帶typescript的靜態(tài)頁面
這篇文章介紹了使用vs2022在.net6中調(diào)試帶typescript的靜態(tài)頁面,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2021-12-12ASP.NET在VS2022中使用Dispose釋放資源實例
這篇文章介紹了ASP.NET在VS2022中使用Dispose釋放資源實例,文中通過示例代碼介紹的非常詳細。對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-11-11