DeletedAccount20899
Member
- Joined
- Mar 18, 2012
- Messages
- 5
- Programming Experience
- Beginner
Deleted
Last edited:
I can't see why it happens but try setting DoubleBuffered=True as I suggested. ControlStyles.OptimizedDoubleBuffer only works in combination with another ControlStyle (UserDraw if I remember correctly). But the use of SetStyle statements for this purpose was superseded by the DoubleBuffered property in VB2005.Unfortunately, even with the double-buffered listbox, I still get flickering when resizing the form
Private Sub Form1_ResizeBegin(sender As Object, e As System.EventArgs) Handles Me.ResizeBegin
Me.SuspendLayout()
End Sub
Private Sub Form1_ResizeEnd(sender As Object, e As System.EventArgs) Handles Me.ResizeEnd
Me.ResumeLayout(True)
End Sub