timerf1.Hide();
f1.Visible = false;
f2.show();

解决方案 »

  1.   

    用 sleep(3000); 停顿3秒钟
      

  2.   

    类似如下:static void Main()
    {
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false); Form f = new Form();
    f.Show();
    Thread.Sleep(500);
    f.Close(); Application.Run(new Form1());
    }
      

  3.   

    Form1 frm =new Form();
    frm.show();if (条件)
    {
    frm.close();Form2 frm2 =new Form();
    Application.Run(frm2);}
      

  4.   

                int k = 0; 
                for(k=1;k<100;k++)
                {
                    this.Opacity -= 0.01;
                }
                Form2 f = new Form2();
                this.Visible = false;
                f.show();
      

  5.   


    thread从哪里引用,这个没有上文
      

  6.   

    thread从哪里引用,这个没有上文
    ------------------using System.Threading;
    或直接如下:
    System.Threading.Thread.Sleep(500);
      

  7.   

    Application.SetCompatibleTextRenderingDefault(false); //这句什么意思,运行不通啊
      

  8.   

    我的是VS2005,如果你是VS2003这句可以去掉。
      

  9.   

    但是一定要保定在调用新的窗体之前调用如下的方法:
    Application.EnableVisualStyles(); 
    Application.SetCompatibleTextRenderingDefault(false); 
      

  10.   

    form加张图没有角什么的!
      

  11.   

    这个问题不难,具体你可以这样:
    1.在Form1上拖一个timer1,属性设置:Enabled设为true,Interval设为100(随便你了)
    2.双击timer1在Tick事件中添加如下代码:private void timer1_Tick(object sender, EventArgs e)
            {
                if (this.Opacity > 0.01)
                {
                    this.Opacity = this.Opacity - 0.01;
                }
                else
                {
                    this.timer1.Enabled = false;
                    this.Hide();
                    Form2 frm2 = new Form2();
                    frm2.Show();
                }
            }运行一下就能看出效果了,lz你可以试下,如果好用别忘了给分哈
      

  12.   

    没错啊,我是在第一个窗体中写的啊
    private void bootlogo_Load(object sender, EventArgs e)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);//这一句执行不过去,系统提示:在应用程序中创建第一个 IWin32Window 对象之前,必须调用 SetCompatibleTextRenderingDefault。            Form f = new Form();
                f.Show();
                Thread.Sleep(500);
                f.Close();            Application.Run(new Form2());        }
      

  13.   

     Application.EnableVisualStyles(); 
    这个应该是在那个Program.cs里的Main函数中执行的。
      

  14.   

    FORM1上添加一张图片,把窗口调整到跟图片一样大小,隐藏窗口的边框。
    然后再在FORM1上添加一个timer控件,设置enable为TRUE,interval 设置30
    private void timer1_Tick(object sender, EventArgs e)
            {
                if (this.Opacity > 0.01)
                {
                    this.Opacity = this.Opacity - 0.01;
                }
                else {
                    this.Hide();
                    this.timer1.Enabled = false;
                    main m = new main();
                    m.Show();
                }
            }
      

  15.   


    static class Program
        {
            private static ApplicationContext context;
            [STAThread]      
            static void Main()
            {
                Application.EnableVisualStyles();                       
                Application.SetCompatibleTextRenderingDefault(false);   
                Splash sp = new Splash();                               
                sp.Show();                                             
                context = new ApplicationContext();
                context.Tag = sp;
                Application.Idle += new EventHandler(Application_Idle); 
                Application.Run(context);
            }
            private static void Application_Idle(object sender, EventArgs e)
            {
                Application.Idle -= new EventHandler(Application_Idle);
                if (context.MainForm == null)
                {
                    Main mw = new Main();
                    context.MainForm =mw;
                    mw.init();                                  
                    Splash sp = (Splash)context.Tag;
                    sp.Close();                                
                    mw.Show();                                
                }
            }
        }
    参考
      

  16.   

    time 控件控制  这个最好
      

  17.   

    楼主,通常把子种窗体叫做MDI的flash窗体,前面几位说的都很清楚了,再不明白,可以上网搜一下,很多的
      

  18.   


    //有劳大师,再次请教,这样写对吗,可是运行后,bootlogo窗体5秒后自己不会自动关闭,手动关闭后,才能弹出窗体2
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new bootlogo());
                     Form f = new bootlogo();
        f.Show();
        Thread.Sleep(500);
        f.Close();    Application.Run(new Form2());
      

  19.   


    首先,谢谢你。我想问隐藏窗口边框除了下面的方法,还有其他方法吗?
    private void bootlogo_Load(object sender, EventArgs e)
            {
                this.FormBorderStyle = FormBorderStyle.None;
            }
      

  20.   

    把第一个窗体隐藏.
    然后show出第二个窗体