C#实现窗体全屏的两种方法

时间:2021-01-21 17:58:16
【文件属性】:
文件名称:C#实现窗体全屏的两种方法
文件大小:27KB
文件格式:PDF
更新时间:2021-01-21 17:58:16
c# system 方法 本文为大家分享了C#实现窗体全屏的具体代码,供大家参考,具体内容如下 方法一:不过此方法有时候会出现莫名的bug //程序启动路径,与生成程序的exe文件在同一目录下 public String exePath = Application.StartupPath; //定义窗体宽高 int screenWidth = 0; int screenHeight = 0; screenWidth = (int)System.Windows.SystemParameters.PrimaryScreenWidth; screenHeight = (int)System.Windows.SystemP

网友评论