limelect 48 Posted May 19, 2019 (edited) I have a similar project like this http://qaru.site/questions/919835/how-to-change-path-of-an-existing-windows-explorer-window when using Result := Succeeded(ShellBrowser.BrowseObject(ItemIDList, SBSP_SAMEBROWSER} or SBSP_ABSOLUTE)); explorer changes but i would like to bring also explorer to FRONT on top of all pages. Edited May 19, 2019 by limelect 1 Share this post Link to post
PeterBelow 238 Posted May 19, 2019 Just an idea: The IShellBrowser interface has a method GetControlWindow which you can use to get the window handle of a control inside the browser. You should be able to use the GetAncestor API function with the GA_ROOT flag with this handle to find the Explorer window itself, and then you can use the SetForegroundwindow API function on that to bring it to front. Share this post Link to post
limelect 48 Posted May 19, 2019 @PeterBelow Thank you what i did in the above program just added 2 lines findexpl:=GetAncestor(WebBrowserApp.HWnd,GA_ROOT); SetForegroundwindow(findexpl); 2 Share this post Link to post