Blinking image in the background

firoz1
07-12-2003, 01:57 AM
I am using an image control to put a picture in background of form.I have changed the "streatch" property of image control to "True" for resize the picture size and wrote the code for resize the image control size as form size when user resize the form. but the form is blinking when he resize the form.

please I need a solution to solve this problum.
thanks

martrinex
07-12-2003, 02:22 AM
this should not blink

Private Sub Form_Resize()
Image1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
End Sub

this instantly changes it to the correct size, note: when moving graphical control in vb a lot the have a tendency to flicker if you are thinking of moving graphics alot use bitblt or stretchblt functions.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum