General information
Category:
Coding, syntax & commands
Use the LockWindowUpdate API in VB...
Public Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
LockWindowUpdate Me.Hwnd ' No more screen refreshes
..
..
LockWindowUpdate 0 ' Unlock refresh
>I'm dynamically adding columns to a listview control inside a tab page at runtime that's displaying each column being added. Is there a way to turn off screen refreshes while the columns are being added and only refresh when all columns are added?
>
>In VFP there's a property LockScreen that I would use for this type of use.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only