自定义一个控件继承基类usercontrol,但是不能输入中文
就为第个问题我花了很多的时间.搜索了许多的网站.都没有找到解决办法. 被逼无耐只好自已看源代码。还参… 继续阅读 自定义一个控件继承基类usercontrol,但是不能输入中文
就为第个问题我花了很多的时间.搜索了许多的网站.都没有找到解决办法. 被逼无耐只好自已看源代码。还参… 继续阅读 自定义一个控件继承基类usercontrol,但是不能输入中文
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
using System.Runtime.InteropServices; public partial class About : Form { public About() { InitializeComponent(); SetClassLong(Handle, GCL_STYLE, GetClassLong(Handle, GCL_STYLE) | CS_DropSHADOW); } #region 制作窗口阴影 private const int CS_DropSHADOW = 0X20000; private int GCL_STYLE = (-26); [DllImport("user32", CharSet = CharSet.Auto)] public static extern int SetClassLong(IntPtr hwnd, int nIndex, int dwNewLong); [DllImport("user32", CharSet = CharSet.Auto)] public static extern int GetClassLong(IntPtr hwnd, int nIndex); #endregion } |
自定义控件的图标在工具栏里是一个齿轮,如何给它换个显示图片? 做一个16*16象素的bmp位图(或… 继续阅读 设置自定义控件的图标