Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Stop flickering


Declare Function LockWindowUpdate Lib "user32" ( ByVal hwndLock As Integer ) As Integer

Form1_Load()

'While loading a form
LockWindowUpdate frmTest.hWnd

'show it
fromTest.show

'Unlock
LockWindowUpdate 0