CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Flickering

  1. #1
    Join Date
    May 2001
    Location
    Kansas City, Missouri
    Posts
    45

    Flickering

    My VB project has an Image control in it with several shape objects placed in front of it. During the Image's MouseMove Event (left mouse button down) I have the Image control and the shape objects move with the mouse. I use the move method to move the objects and the shapes. My problem is that when I move the Image and the shapes, these items flicker horribly.

    Does anyone have any suggestions for minimizing the flicker. Ideally, I would like to completely eliminate the flicker, but I realize this may not be possible in VB.

    Thanks in advance.


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Flickering

    you might consider using another control, e.g. shape to represent the image when it's being moved like what windows do when u move a window, windows didn't move the actual window, but using a rectangular to represent it.

    HTH

    cksiow
    http://vblib.virtualave.net - share our codes


  3. #3
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Flickering

    The lightweight controls, the imagebox and the label cause much flicker. Using a picturebox instead of the imagebox should reduce the flicker. If you draw the shapes on the picturebox, using the picturebox's methods, instead of using shape controls, you'll experience much less flicker.


  4. #4
    Join Date
    Jul 2000
    Posts
    135
    You might try setting your object.visible = False then when you are done drawing it set it to true again

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

Featured