Results 1 to 10 of 10

Thread: image/picture/label flickering

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    65

    image/picture/label flickering

    Hi,

    Can anyone assist me in trying to resolve a problem of a label flickering within an image box.

    I have designed a simple screen saver for my workplace. The program has the following items. I have an image box (image1) which has another image box (image2) embedded within. In the Image1 box I also have a label1, this seems to flicker each time image bounces around the screen.

    I have also changed that form1.autoredraw = false, flickering still exisits.

    I have also done research into the flickering and yes, I have tried picture boxes instead of image boxes, but still i have the same problem. I have also decreased the speed/time of the box bouncing around the screen, problem is still there. My background color on the form is black yet the label caption is in white, just for your information.

    Does anyone have any ideas to resolve the flickering ?

    Any help is appreciated.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: image/picture/label flickering

    try hiding the label until the move is complete

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    65

    Re: image/picture/label flickering

    Thanks for the reply.

    I have tried to hide the label but no avail.

    I have also tried to hide the image during the move, this too was not successfull.

    Any other ideas ?

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: image/picture/label flickering

    turn redraw off for the imagebox?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    65

    Re: image/picture/label flickering

    "turn redraw off for the imagebox?"

    I believe that only the form has the .autoredraw. The image nor the picture has the .autoredraw/.redraw

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: image/picture/label flickering

    picture1.autoredraw on my system
    not imagebox

  7. #7
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: image/picture/label flickering

    Upload your program. I'll fix it for ya. I had this problem before but managed to solve it myself. Unfortunately it was years ago! But my memory should come back once I work on your program.

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: image/picture/label flickering

    Don't you have problems with VB6 code with VB5?

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    65

    Re: image/picture/label flickering

    Hi,

    Thanks for your replies.

    I'm using VB6, and I still can't resolve this problem. I've uploaded my code for anyone to check/modify or give feedback on what I'm doing wrong.

    Thanks.
    Attached Files Attached Files

  10. #10
    Lively Member sishe's Avatar
    Join Date
    Aug 2004
    Location
    Izmit/Turkey
    Posts
    115

    Re: image/picture/label flickering

    I made no changes on code.. But it works, does not flicker ..
    System Halted..
    -----------------------------------------
    Sishe

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