Function DoubleBufferedx(ByVal dgv As DataGridView, ByVal setting As Boolean)
Dim dgvType As Type = dgv.GetType()
Dim pi As System.Reflection.PropertyInfo = dgvType.GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance Or System.Reflection.BindingFlags.NonPublic)
pi.SetValue(dgv, setting, Nothing)
Return True
End Function
僅此作為筆記。