摘要: // 获取屏幕分辨率int SH = Screen.PrimaryScreen.Bounds.Height;int SW = Screen.PrimaryScreen.Bounds.Width;System.Windows.Forms.SystemInformation.WorkingArea.Wi 阅读全文
posted @ 2019-11-25 20:08 惊风雨 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 当前的屏幕除任务栏外的工作域大小this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;this.Height = System.Windows.Forms.Screen.PrimaryScreen.Worki 阅读全文
posted @ 2019-11-25 19:22 惊风雨 阅读(2041) 评论(1) 推荐(0) 编辑
摘要: winfrom界面不能全部显示是因为分辨率的问题,我的电脑的分辨率是1920*1080,布局大小是125%,如果更改分辨率改成1600*900,布局大小改为100%则没有问题。 画图是先要确定需求方电脑分辨率的大小,可以先更改本电脑的分辨率大小来再来进行开发,应该还有其他方法更好。暂时记录。 阅读全文
posted @ 2019-11-25 18:04 惊风雨 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 项目中需要使用DateTimePicker空间选定当前的时间,但是这个空间默认显示到天,如何能让它显示具体的小时和分钟呢? 我们看到有一个Format属性,Format令我们想到格式化,有这几种格式 有一个值是Custom(定制) DateTimePicker的还有一个属性是CustomFormat 阅读全文
posted @ 2019-11-25 09:43 惊风雨 阅读(2719) 评论(0) 推荐(0) 编辑