I asked this question before, since nobody respond to it,
I decide to ask it again to see if i can get a better results.
What i want to do is something simple, i am working in a VB6 project,
My goal is to execute a command code to a program, but before that
i want my project to wait for that program to be load, then apply code.
Ive been using the Sleep method, and actually is been working very well,
but i was wondering if i could do it better with DoEvent or something better.
Private Sub Form_Load()
Sleep 3 'wait like three seconds or so
Then after the program load up, is time to apply my code here.
I even add a second code to detect if the windows program is ready or not
'f return not ready, then another three seconds are applyed to my project.
Thanks in advance
prior related question: http://www.experts-exchange.com/Q_26841079.html
aikimark -- zone advisor