Hi,
I have already tried it but when I use this API and test my app my Progress bar does not move till I move my form and then it shows 100% done. If I use DoEvents with this API the flickering starts again.
If Use this API and put 2 instances of my control on the form.. the whole screen goes buzark and starts acting funny and starts blinking....
Main Topics
Browse All Topics





by: SethiPosted on 2003-11-06 at 06:43:51ID: 9694307
Use LockWindowUpdate API before and after the processing starts:
Public Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
Pass the Hwnd of the windows where the processing is going to start just before the code where processing starts like:
LockWindowUpdate Me.Hwnd
Just aftre the last line of code pass 0 as value:
LockWindowUpdate 0