01 2020 档案
摘要:partial class DataGridViewInfo { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary>
阅读全文
摘要: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; }
阅读全文
摘要:1.先将要转换的json或者xml复制到粘贴板 2.在vs中选择下图所示操作,就可以转换为对应的类 注意: 生成的代码可能至少需要 .NET Framework 4.5 或 .NET Core/Standard 2.0。
阅读全文

浙公网安备 33010602011771号