For i As Integer =1 To 43 Dim pp As WinForm.Panel = e.Form.Controls("panel" & i) pp.baseControl.Gettype().GetProperty("DoubleBuffered", Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic).SetValue(pp.baseControl,True,Nothing) Next