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?
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
Private Sub Form_Resize()
LockWindowUpdate hwnd
...
LockWindowUpdate 0
End Sub