摘要: [DllImport("user32", EntryPoint = "ShowCursor")] public extern static bool ShowCursor(bool show); private void button1_Click(object sender, EventArgs e) { ShowCursor(false);//隐藏鼠标 } private void butto 阅读全文
posted @ 2019-08-10 14:18 袁浩178 阅读(1882) 评论(0) 推荐(0) 编辑
摘要: 现在的一些软件开发软件如VScode,HBuilder等软件,都支持将文件直接拖入到软件中展示,这种操作极大的方便的我们开发,要是在winform中能不能实现这种功能。 思路:修改winform窗体的AllowDrop属性,让窗体可以接受用户拖到它上面的数据,当文件拖到窗体时触发DragEnter时 阅读全文
posted @ 2019-08-09 15:15 袁浩178 阅读(335) 评论(0) 推荐(0) 编辑
摘要: //限制鼠标活动区域 private void button1_Click(object sender, EventArgs e) { this.Cursor = new Cursor(Cursor.Current.Handle);//创建Cursor对象 Cursor.Position = new Point(Cursor.Position.X, Cursor.Position.Y);//设置鼠 阅读全文
posted @ 2019-08-09 09:50 袁浩178 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 修改文件名 删除文件 阅读全文
posted @ 2019-08-08 18:33 袁浩178 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 删除指定目录下的所有文件 更改文件扩展名 阅读全文
posted @ 2019-08-08 15:52 袁浩178 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1.字面量的方式 2.调用系统的构造函数 3.自定义构造函数的方式 4.工厂模式创建对象 阅读全文
posted @ 2019-07-28 18:46 袁浩178 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: 全选 全选 12 13 14 单选 22 23 24 单选 32 33 34 ... 阅读全文
posted @ 2019-07-27 17:58 袁浩178 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 表格隔行变色 11 12 13 14 21 22 23 24 31 32 33 34 4... 阅读全文
posted @ 2019-07-27 17:16 袁浩178 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: document.ready和window.onload的区别是: document.ready方法在DOM树加载完成后就会执行。 window.onload方法是在页面资源(比如图片和媒体资源,这些的加载速度远慢于DOM的加载速度)加载完成之后才执行。 总结:$(document).ready要比 阅读全文
posted @ 2019-07-27 16:30 袁浩178 阅读(114) 评论(0) 推荐(0) 编辑
摘要: JS实现定时弹出广告 :--> 阅读全文
posted @ 2019-07-27 16:12 袁浩178 阅读(1703) 评论(0) 推荐(0) 编辑