Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: FuZe on August 31, 2003, 07:44 PM

Title: Picture Buffering
Post by: FuZe on August 31, 2003, 07:44 PM
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?
Title: Re:Picture Buffering
Post by: Camel on August 31, 2003, 09:12 PM
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

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