【文件属性】:
文件名称:c# 系列窗体全屏代码
文件大小:32KB
文件格式:RAR
更新时间:2013-10-18 10:14:08
窗口 全屏 代码
用于窗口全屏的代码 两种全屏方法 c#
/窗体的基本设置:
//(1)工作区域设置
//方法1-获取工作区的分辨率
/*
Rectangle rect = new Rectangle();
rect = Screen.GetWorkingArea(this);
rect.Width=System .Windows .Forms .Screen .GetWorkingArea (this).Width ;
rect.Height = System.Windows.Forms.Screen.GetWorkingArea(this).Height;
this.Size = new Size(rect.Width, rect.Height);
*/
//方法2—获取整屏的分辨率
/*
int SH = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
int SW = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
this.Size = new Size(SW,SH);
*/
【文件预览】:
CDManagesys
----CDManagesys.sln(922B)
----CDManagesys.suo(13KB)
----CDManagesys()
--------Interface.Designer.cs(1KB)
--------Login.cs(423B)
--------Interface.resx(6KB)
--------bin()
--------obj()
--------Login.Designer.cs(1KB)
--------Properties()
--------Program.cs(474B)
--------Login.resx(6KB)
--------CDManagesys.csproj(4KB)
--------Interface.cs(2KB)
网友评论
- 好用,很久之前下载的了,抱歉评价晚了
- 32位os能用
- WIN7 64位系统运行报错,修改代码后能运行了,但不是全屏窗口,任务栏还显示。