I need to wait for some events in my application, or wait for somew time to elaps before doing some other stuff
i tried this pseudo code in vb6
starttime=gettickcount
do
endtime=gettickcount
if endtime-starttime=>waittime then exit do
doevents()
loop
But this seems to freezes the gui, i need an alternative method that will wait without freez the gui
EDIT i forgot the doevents, please take note