In my main application,I'mm calling a process named A.This process is calling another application B.Problem is,the process A is always top on my main window,but when process B starts it is situated behind my main window.It is occurring not every time I am doing the operation,but sometime.
After calling application A,I have applied wait for exit and then I am making main window thread to sleep(this is required in my case),in the mean time application B is started by A.This B process window sometime is behind the main window.
can any one suggest me to do anything?