在form中添加了多个Label放图片,但是显示会闪一下
找到一段代码,通过SetStyle设置属性可以防止form显示的时候闪
Strokesplus支持Microsoft的ClearScript,如何将代码里面的new object[]改为host.newObj(),将里面的元素赋值为true
var form = new Form();
form.GetType().GetMethod("SetStyle", host.flags(System.Reflection.BindingFlags.Instance ,System.Reflection.BindingFlags.NonPublic))
.Invoke(form, new object[]
{
System.Windows.Forms.ControlStyles.UserPaint |
System.Windows.Forms.ControlStyles.AllPaintingInWmPaint |
System.Windows.Forms.ControlStyles.DoubleBuffer, true
});