摘要:
struct aa { public string a; public string b; } aa p = new aa(); p.a = "1"; p.b = "1"; //对象转IntPtr var handle = GCHandle.Alloc(p); var ptr = GCHandle. 阅读全文
摘要:
最近工作中用到了动态给DataGridView添加列 并给此列赋值,故记录一下 var col = new DataGridViewColumn(); //要插入列的类型 col.CellTemplate = new DataGridViewTextBoxCell(); col.Name = "co 阅读全文