摘要:
通过反射技术,我们可以给某对象的私有属性赋值,解决TableLayoutPanel容器中控件过多时显示出现闪烁的问题,需要设置容器的双缓冲属性。在窗体加载事件中添加以下代码:this.tableLayoutPanel1.GetType() .GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic) .SetValue(this.tableLayoutPanel1, true, null); 阅读全文
posted @ 2013-06-08 17:51
赵新学
阅读(1472)
评论(0)
推荐(0)