R
Robin Tucker
I wanted to enable double buffering for my list view control to avoid
flicker when adding or removing new records, so I subclassed it. However, I
just plain don't get ANYTHING displayed after enabling double buffering. Is
there more to this functionality than meets the eye?
Public Class ListViewDblBuffer
Inherits ListView
Public Sub EnableDblBuffer()
Me.SetStyle(ControlStyles.DoubleBuffer _
Or ControlStyles.UserPaint _
Or ControlStyles.AllPaintingInWmPaint, _
True)
Me.UpdateStyles()
End Sub
End Class
flicker when adding or removing new records, so I subclassed it. However, I
just plain don't get ANYTHING displayed after enabling double buffering. Is
there more to this functionality than meets the eye?
Public Class ListViewDblBuffer
Inherits ListView
Public Sub EnableDblBuffer()
Me.SetStyle(ControlStyles.DoubleBuffer _
Or ControlStyles.UserPaint _
Or ControlStyles.AllPaintingInWmPaint, _
True)
Me.UpdateStyles()
End Sub
End Class