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.
Re: image/picture/label flickering
try hiding the label until the move is complete
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 ?
Re: image/picture/label flickering
turn redraw off for the imagebox?
:)
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
Re: image/picture/label flickering
picture1.autoredraw on my system
not imagebox
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. ;)
Re: image/picture/label flickering
Don't you have problems with VB6 code with VB5?
1 Attachment(s)
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.
Re: image/picture/label flickering
I made no changes on code.. But it works, does not flicker ..