Wednesday, July 16, 2008

Kill That Annoying Flicker

The DataSamples sample (pp. 291-303) in Expert F# has an annoying flicker that can be fixed by adding the following line of code after line 101:
do base.SetStyle(ControlStyles.AllPaintingInWmPaint |||
ControlStyles.UserPaint |||

If you're writing the code yourself, put the above line after this line:
do base.BackColor <- Color.DarkBlue 

No comments: