Results 1 to 10 of 10

Thread: [RESOLVED] Image Flickering.

Hybrid View

  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    28

    Re: Image Flickering.

    Try setting DoubleBuffered to True on the form itself, rather than the controls.

  2. #2
    Hyperactive Member
    Join Date
    Apr 2011
    Location
    England
    Posts
    421

    Re: Image Flickering.

    Try this code:
    VB.NET Code:
    1. Protected Overrides ReadOnly Property CreateParams() As CreateParams    
    2.     Get    
    3.         Dim cp As CreateParams = MyBase.CreateParams    
    4.         cp.ExStyle = cp.ExStyle Or &H2000000    
    5.         Return cp    
    6.     End Get    
    7. End Property
    Every time the form redraws it will ignore the areas occupied by child controls. It tends to fix most flicker issues. You will need to use Control.Refresh() if any of your controls have to be redrawn for any reason.

    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width