2024年2月27日
摘要: 代码 点击查看代码 int xWidth3 = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; int yHeight3 = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height 阅读全文
posted @ 2024-02-27 15:08 RookieBoy666 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 窗口初始化后: 点击查看代码 //获取窗口的大小,Tag随便保存的,也可以定义变量保存 this.Tag = this.Width.ToString() + "," + this.Height.ToString(); //这一步很重要,不能隐式的去生成这个事件,就是不能直接在属性栏里面双击自动生成, 阅读全文
posted @ 2024-02-27 15:00 RookieBoy666 阅读(86) 评论(0) 推荐(0) 编辑