Quote:
>I have an imagebox which i move a using the arrow keys.
>Here is my code:
[Snip]
>The problem is that the image flickers while moving. Is there anyway to get
>rid of the flickering?
Hi Alex. I tried four different ways of solving your prob but they all
failed :-(
However, number five! Just a possibility for you.
(VB6, 500MHz Pentium III, 128MB RAM)
A new .exe with a .jpg 217 pixels W X 300 pixels H as Form1.Picture,
AutoRedraw = False, BorderStyle = None. Then used something very much
like your code to move it around...
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyLeft
Move Left - 200
Case vbKeyRight
Move Left + 200
Case vbKeyUp
Move Left, Top - 200
Case vbKeyDown
Move Left, Top + 200
End Select
End Sub
Result? No significant picture break up at all on moving it around.
Only a suggestion.
Regards.
--
Martin Trump