hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

Expert F# - Eliminate Flicker from DataSamples Example

Last post 07-16-2008, 18:58 by RayV. 0 replies.
Sort Posts: Previous Next
  •  07-16-2008, 18:58 6403

    Expert F# - Eliminate Flicker from DataSamples Example

    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 |||

    ControlStyles.DoubleBuffer,

    true)



    If you're writing the code yourself, put the above line after this line in the GraphControl type:
    do base.BackColor <- Color.DarkBlue 
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems