2008年11月26日
摘要: 本文转自:http://hi.baidu.com/yore2003/blog/item/f385df22377156f5d6cae239.html 调用API using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern bool ReleaseCapture(); ... 阅读全文
posted @ 2008-11-26 14:48 huaiyu 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://www.cnblogs.com/freeliver54/archive/2008/11/22/1338877.html0.新建窗体 及添加按钮 1. 执行如下按钮事件 private void btnFormMax_Click(object sender, EventArgs e) { if (this.WindowState == FormWindowSta... 阅读全文
posted @ 2008-11-26 14:46 huaiyu 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://www.cnblogs.com/hzbzxm/archive/2008/09/15/1291104.html 以前试过在WinForm中自定义鼠标样式,结果显示出来的鼠标变成单色。 后来百度了下,原来要用API来做。 首先引入两个命名空间 using System.Runtime.InteropServices;using System.Reflectio... 阅读全文
posted @ 2008-11-26 14:38 huaiyu 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://www.smartgz.com/blog/Article/1088.asp 原文如下: 本代码可以依据主程序加载进度来显示Splash。 static class Program { /// /// 主程序的入口点在此设置,包括一些初始化操作,启动窗体等 /// private static ... 阅读全文
posted @ 2008-11-26 14:36 huaiyu 阅读(2791) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://blog.csdn.net/Terry001/archive/2008/05/01/2352511.aspx public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.D... 阅读全文
posted @ 2008-11-26 14:31 huaiyu 阅读(1339) 评论(0) 推荐(0) 编辑