mcclintk
08-25-2004, 01:37 PM
I'm currently working on a VB stub that is called from a packed application. This stub needs to open an IE.exe to a specific address. I've got this wokring fine. The problem is, we need this IE window to remain on top until it is physically closed by the user. Using the SetWindowPos API, I been able to do this very easily for a separate parallel VB app, but I cannot get the IE window to stay on top.
I've found a number of examples using the setwindowpos to try to get this siutation to work but I'm having no luck.
BTW... this is VB6
Ej12N
08-25-2004, 05:58 PM
I'm currently working on a VB stub that is called from a packed application. This stub needs to open an IE.exe to a specific address. I've got this wokring fine. The problem is, we need this IE window to remain on top until it is physically closed by the user. Using the SetWindowPos API, I been able to do this very easily for a separate parallel VB app, but I cannot get the IE window to stay on top.
I've found a number of examples using the setwindowpos to try to get this siutation to work but I'm having no luck.
BTW... this is VB6
IDEA:
Use a timer to do this...
If IE is open then set it on top
USE SetForegroundWindow API
Else means is closed or users just closed it
'do whatever
end if
malloc
08-26-2004, 12:47 AM
Have a look here:
http://www.xtremevbtalk.com/showthread.php?t=184861
Specifically at post #11
Once you have created an InternetExplorer object you can access it's hwnd so you can use this in the SetWindowPos function.
mcclintk
08-26-2004, 06:40 AM
Have a look here:
http://www.xtremevbtalk.com/showthread.php?t=184861
Specifically at post #11
Once you have created an InternetExplorer object you can access it's hwnd so you can use this in the SetWindowPos function.
That took care of it! Thanks a lot!