winform设置全屏显示计算机系统任务栏

         /// <summary>
        /// 设置全屏是不遮挡任务栏
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form5_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState = FormWindowState.Normal;
            this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
            this.WindowState = FormWindowState.Maximized;
        }

posted @ 2017-03-23 14:03  独寻觅  阅读(339)  评论(0编辑  收藏  举报