簡(jiǎn)單的啟動(dòng)窗體
更新時(shí)間:2006年10月26日 00:00:00 作者:
復(fù)制代碼 代碼如下:
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();
//做要做的事
//運(yùn)行主程序
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();
//做要做的事
//運(yùn)行主程序
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對(duì)MVVM架構(gòu)數(shù)據(jù)驗(yàn)證
這篇文章介紹了WPF使用ValidationRules對(duì)MVVM架構(gòu)數(shù)據(jù)驗(yàn)證的方法,文中通過(guò)示例代碼介紹的非常詳細(xì)。對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2022-01-01ASP.NET?Core中Razor頁(yè)面的Handlers處理方法詳解
本文詳細(xì)講解了ASP.NET?Core中Razor頁(yè)面的Handlers處理方法,文中通過(guò)示例代碼介紹的非常詳細(xì)。對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2022-02-02讓Sqlite脫離VC++ Runtime獨(dú)立運(yùn)行的方法
這篇文章主要介紹了讓Sqlite脫離VC++ Runtime獨(dú)立運(yùn)行的方法,需要的朋友可以參考下2014-07-07使用vs2022在.net6中調(diào)試帶typescript的靜態(tài)頁(yè)面
這篇文章介紹了使用vs2022在.net6中調(diào)試帶typescript的靜態(tài)頁(yè)面,對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2021-12-12.Net行為型設(shè)計(jì)模式之中介者模式(Mediator)
這篇文章介紹了.Net行為型設(shè)計(jì)模式之中介者模式(Mediator),文中通過(guò)示例代碼介紹的非常詳細(xì)。對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2022-05-05ASP.NET在VS2022中使用Dispose釋放資源實(shí)例
這篇文章介紹了ASP.NET在VS2022中使用Dispose釋放資源實(shí)例,文中通過(guò)示例代碼介紹的非常詳細(xì)。對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-11-11