|
-
Oct 20th, 2001, 03:11 PM
#1
Please help me stop flickering!
Hi,
I have four imageboxes which update every second. The only problem is, after about three or four updates, the images flicker. Then it will be okay for three or four more, then it will flicker again..
This becomes rather annoying after a prolonged period of time.
Please help! 
TIA!
-
Oct 20th, 2001, 03:18 PM
#2
Frenzied Member
Are you using BitBlt, PaintPicture or just setting the control's property?
-
Oct 20th, 2001, 03:36 PM
#3
PowerPoster
-
Oct 20th, 2001, 03:57 PM
#4
Chrisjk - I tried that, the flickering is still there though 
numtel - I use img1.Picture=LoadPicture (pathtopicture)
-
Oct 21st, 2001, 04:05 AM
#5
Would BitBlt or PaintPicture stop the flickering?
-
Oct 21st, 2001, 08:00 AM
#6
Addicted Member
Flickering
If U can, change the image box to a picture box - they don't seem to flicker.
-
Oct 21st, 2001, 08:15 AM
#7
Fanatic Member
You could use two image/picture boxes instead of one.
Do your updates on the back one, then bring it to the front.
That's an old trick for slow (i.e. calculated) drawing operations that you want to seem to appear quickly.
Brian
(Fighting with the RightToLeft bugs in VS 2005)
-
Oct 21st, 2001, 11:38 AM
#8
PowerPoster
You could always use an off-screen buffer with BitBlt. That would probably stop the flickering...
-
Oct 21st, 2001, 11:53 AM
#9
Frenzied Member
When you use LoadPicture() you are reading the file from the harddisk when you load it. Very slow as far as displaying an image goes. If there are not too many images I would use and array of image controls or even an ImageList control. Have all of your images loaded and then just swap them into the one visible image control as needed.
Greg
Free VB Add-In - The Reference Librarian
Click Here for screen shot and download link.
-
Oct 21st, 2001, 11:54 AM
#10
PowerPoster
...or you can make it into an animated GIF or an AVI file, and then just play it. ....if it's possible.
-
Oct 21st, 2001, 11:56 AM
#11
PowerPoster
Well
Declare Function LockWindowUpdate Lib "user32" _
(ByVal hWnd As Long) As Long
This doesn't work? Where in your code are you placing?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Oct 21st, 2001, 12:06 PM
#12
How would I use an ImageList, ie what code? I have added all the pictures, but how do I make a picturebox display a picture in the imagelist?
-
Oct 21st, 2001, 12:12 PM
#13
PowerPoster
Well
Set Picure1.picture=me.Image1.Imagelist(1).Picture
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|