设置双缓存
e.Form.panel.Gettype().GetProperty("DoubleBuffered", Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic).SetValue( e.Form.panel,True,Nothing)
如果是在对应控件设置的背景,你要对应设置对应控件的双缓存,类似
Dim p As WinForm.PictureBox = e.Form.Controls("PictureBox1")
p.baseControl.Gettype().GetProperty("DoubleBuffered", Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic).SetValue(p.baseControl,True,Nothing)