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

北大青鸟APTECH(重庆观音桥)授权培训中心 赵新学