上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: private const int SW_SHOWNOMAL = 1; /// /// 该函数设置由不同线程产生的窗口的显示状态 /// /// 窗口句柄 /// 指定窗口如何显示。查看允许值列表,请查阅ShowWlndow函数的说明部分 /// 如果函数原来可见,返回值为非零;如果函数原来被隐... 阅读全文
posted @ 2017-03-21 11:07 hi..... 阅读(852) 评论(0) 推荐(0) 编辑
摘要: https://msdn.microsoft.com/zh-cn/library/ms404263(v=VS.90).aspx http://www.cnblogs.com/weixing/p/3358740.html 阅读全文
posted @ 2017-03-17 17:15 hi..... 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 1)app.mainfest文件中 2)在App.cs中增加以下代码: 3)重写 OnStartup 函数 4)保存,重新生成,发布 加入上面的代码之后,重新使用ClickOnce方式发布 阅读全文
posted @ 2017-03-16 17:09 hi..... 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 扩展支持全选的CheckBox列。 https://www.codeproject.com/articles/42437/toggling-the-states-of-all-checkboxes-inside-a-dat 阅读全文
posted @ 2017-03-16 14:38 hi..... 阅读(149) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using Syste... 阅读全文
posted @ 2017-03-15 10:11 hi..... 阅读(203) 评论(0) 推荐(0) 编辑
摘要: public partial class Form1 : Form { [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] private static extern IntPtr CreateRoundRectRgn ( int nLeftRect, // x-coordinate of... 阅读全文
posted @ 2017-03-14 17:28 hi..... 阅读(604) 评论(0) 推荐(0) 编辑
摘要: [DllImport("User32.dll")] public static extern bool PtInRect(ref Rectangle Rects, Point lpPoint); private void timerShowHide_Tick(object sender, EventArgs e) { if... 阅读全文
posted @ 2017-03-14 17:05 hi..... 阅读(192) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll")] private static extern IntPtr FindWindow(string a, string b); [DllImport("user32.dll")] private static extern IntPtr PostMessage(IntPtr hWnd, int ms... 阅读全文
posted @ 2017-02-28 10:24 hi..... 阅读(479) 评论(0) 推荐(0) 编辑
摘要: public class Xtxt3 : TextBox { private bool m_underLine; public bool UnderLine { get { return m_underLine; } set { if... 阅读全文
posted @ 2017-02-27 15:00 hi..... 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 不可取 var handle = bmp.GetHicon(); //得到图标句柄return Icon.FromHandle(handle); //通过句柄得到图标 可取 阅读全文
posted @ 2017-02-24 09:58 hi..... 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页