用于窗口全屏的代码 两种全屏方法 c#

                int h, w;
                //w = System.Windows.Forms.Screen.GetWorkingArea(this).Width;
                //h = System.Windows.Forms.Screen.GetWorkingArea(this).Height;
                h = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
                w = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
                gt.FormBorderStyle = FormBorderStyle.None;
                gt.Size = new Size(w, h);
                gt.ShowData(_mur);
                gt.ShowDialog();

posted @ 2012-11-29 11:09  怡馨  阅读(671)  评论(0编辑  收藏  举报