Hey All,
I found the following code in the forums to hide/show the active IE window...
VB Code:
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long Private Sub Command1_Click() Dim hApp As Long hApp = FindWindowEx(0, 0, "IEFrame", vbNullString) ShowWindow hApp, 0 'change 0 to 1 to show it again End Sub Private Sub Command2_Click() Dim hApp As Long hApp = FindWindowEx(0, 0, "IEFrame", vbNullString) ShowWindow hApp, 1 'change 0 to 1 to show it again End Sub
Can someone please show me how to put this in a loop to hide/show all open
IE windows?
Any help would be appreciated.
Thanks,
Ron




Reply With Quote