• Welcome to Valhalla Legends Archive.
 

Picture Buffering

Started by FuZe, August 31, 2003, 07:44 PM

Previous topic - Next topic

FuZe

I'm using visual basic, and I added code for centering and relocating certain controls when someone resizes the form.  The only problem is that everything is flickering so much.  I know from java that you can create picture buffer so it won't flicker, but is there a way to do this in visual basic?

Camel

Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

Private Sub Form_Resize()
   LockWindowUpdate hwnd
...
   LockWindowUpdate 0
End Sub