Seriously, I have spent over 12 hours on this one problem. I'm begging you to help me.

What is the code required to utilize API functions to set the top window current?

I use the AppActivate function to set another application current. The application that is being sent current is an application that I did NOT develop. When the focus is switched to this application, the parent window is active. I want to set current whatever child window is the topmost window.

I am using VB5 and this must work on both NT4 and 2000.


Thanks very much to anyone that can help me.

Ryan