摘要:
1.在父控件中居中 /// <summary> /// 控件在父控件中居中 /// </summary> /// <param name="ctr">要设置的控件</param> /// <param name="isLR">左右居中</param> /// <param name="isUD">上 阅读全文
摘要:
class CtrEnabled { [System.Runtime.InteropServices.DllImport("user32.dll ")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, int wndproc); [S 阅读全文
摘要:
将要实现拖曳的窗体订阅下列两个事件 private void Form1_DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) e.Effect = DragDropE 阅读全文
摘要:
1.使用反射需引用 using System.Reflection; 2.创建用于反射的对象 class People { string _name = "1"; //私有字段 public string Name = "2"; //公共字段 public int Age { get; set; } 阅读全文