移动控件闪烁问题
在panel中添加了六个button,是第三方的button控件,支持透明图片的,在程序运行是修改panel的local属性,panel中的button和picturebox闪烁的非常厉害,在窗体的构造函数中加入了
this.SetStyle(ControlStyles.UserPaint | ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
this.UpdateStyles();
还是没用。ps:窗体是粉色镂空的不规则窗体