摘要: 本文转自:http://hi.baidu.com/yore2003/blog/item/f385df22377156f5d6cae239.html调用API using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wP 阅读全文
posted @ 2012-08-26 15:02 dogxuefeng 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/freeliver54/archive/2008/11/03/1325252.html实现效果:通过StatusStrip显示窗体状态栏同时将状态栏分成三部分居左边显示相关文字信息中间空白显示居右边显示时间信息1.创建窗体及添加StatusStrip 默认StatusStrip名称为statusStrip12.在statusStrip1的Items属性中 添加三个StatusLabel 默认名称为toolStripStatusLabel1,2,3 按1,2,3的顺序排列3.修改toolStripStatusLabel1的Text属性 为相关. 阅读全文
posted @ 2012-08-26 15:00 dogxuefeng 阅读(621) 评论(0) 推荐(1) 编辑
摘要: [转]构造圆角窗体 http://topic.csdn.net/t/20041128/19/3596094.html 增加命名空间:using System.Drawing.Drawing2D; 添加方法如下:当然各角的点可根据需要确定. private void Type(Control sender,int p_1,double p_2) { GraphicsPath oPath = new GraphicsPath(); oPath.AddClosedCurve(new Point[] {new Point(0,sender.Height / p_1),new Point(sender. 阅读全文
posted @ 2012-08-26 14:58 dogxuefeng 阅读(196) 评论(0) 推荐(0) 编辑