Creating an animated splash screen like office 2010

后端 未结 6 1772
醉酒成梦
醉酒成梦 2021-02-19 09:10

How can I create an animated splash screen like the one in Office 2010 using C#?

6条回答
  •  盖世英雄少女心
    2021-02-19 09:29

    A detailed guide for a splashscreen is here: eExample splashscreen

    Another example

    Although the basics is:

    1) Create a splashscreen, show it, close/dispose it

        private void SplashForm()
        {
        SplashForm newSplashForm = new SplashForm();
        newSplashForm.ShowDialog();
        newSplashForm.Dispose();
        }
    

    2) Run the splashscreen on a seperate thread/backgroundworker

            Thread t1 = new Thread(new ThreadStart(SplashForm));
            t1.Start();
            Thread.Sleep(5000); // 5 seconds
            t1.Abort();
            Thread.Sleep(1000);
    

提交回复
热议问题