-- 作者:大红袍
-- 发布时间:2016/4/20 10:01:00
--
用双缓存试试。
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)
|