摘要:
private const int SW_SHOWNOMAL = 1; /// /// 该函数设置由不同线程产生的窗口的显示状态 /// /// 窗口句柄 /// 指定窗口如何显示。查看允许值列表,请查阅ShowWlndow函数的说明部分 /// 如果函数原来可见,返回值为非零;如果函数原来被隐... 阅读全文
摘要:
https://msdn.microsoft.com/zh-cn/library/ms404263(v=VS.90).aspx http://www.cnblogs.com/weixing/p/3358740.html 阅读全文
摘要:
1)app.mainfest文件中 2)在App.cs中增加以下代码: 3)重写 OnStartup 函数 4)保存,重新生成,发布 加入上面的代码之后,重新使用ClickOnce方式发布 阅读全文
摘要:
扩展支持全选的CheckBox列。 https://www.codeproject.com/articles/42437/toggling-the-states-of-all-checkboxes-inside-a-dat 阅读全文
摘要:
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... 阅读全文
摘要:
public partial class Form1 : Form { [DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] private static extern IntPtr CreateRoundRectRgn ( int nLeftRect, // x-coordinate of... 阅读全文
摘要:
[DllImport("User32.dll")] public static extern bool PtInRect(ref Rectangle Rects, Point lpPoint); private void timerShowHide_Tick(object sender, EventArgs e) { if... 阅读全文
摘要:
[DllImport("user32.dll")] private static extern IntPtr FindWindow(string a, string b); [DllImport("user32.dll")] private static extern IntPtr PostMessage(IntPtr hWnd, int ms... 阅读全文
摘要:
public class Xtxt3 : TextBox { private bool m_underLine; public bool UnderLine { get { return m_underLine; } set { if... 阅读全文
摘要:
不可取 var handle = bmp.GetHicon(); //得到图标句柄return Icon.FromHandle(handle); //通过句柄得到图标 可取 阅读全文