源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

简单的启动窗体

  • 时间:2022-11-08 02:23 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:简单的启动窗体
[u]复制代码[/u] 代码如下:
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();    } 
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部