设计软件启动界面

Posted on 2018-12-15 11:24  努力成长静待花开  阅读(720)  评论(0编辑  收藏  举报

实现效果:

  

知识运用:

   Timer组件的Start方法  窗体的FormBorderStyle属性

  

  补充:属性为FixedToolWindow枚举值的窗体通常不显示在任务栏中

  但是必须确保ShowInTaskbar属性设置为false 因为其默认值为true

实现代码:

        private void Form1_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.BackgroundImage = Properties.Resources.StartImg;
            timer1.Start();
            timer1.Interval = 3000;
        }