Form flicker

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi there,

I have created a simple ticker tape type app that scrolls 2 label controls
across the screen. It works just fine but the label controls flicker a lot.

Can anybody tell me how to prevent this?


Cheers
 
Never mind... fixed it by adding this to the form:

'Add any initialization after the InitializeComponent() call
Me.SetStyle(ControlStyles.DoubleBuffer Or ControlStyles.UserPaint Or
ControlStyles.AllPaintingInWmPaint, True)
Me.UpdateStyles()

Cheers
 
Back
Top