Results 1 to 5 of 5

Thread: Hide/Show all IE windows (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    154

    Resolved Hide/Show all IE windows (RESOLVED)

    Hey All,

    I found the following code in the forums to hide/show the active IE window...

    VB Code:
    1. 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
    2. Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
    3.  
    4. Private Sub Command1_Click()
    5.     Dim hApp As Long
    6.     hApp = FindWindowEx(0, 0, "IEFrame", vbNullString)
    7.     ShowWindow hApp, 0 'change 0 to 1 to show it again
    8. End Sub
    9.  
    10. Private Sub Command2_Click()
    11.     Dim hApp As Long
    12.     hApp = FindWindowEx(0, 0, "IEFrame", vbNullString)
    13.     ShowWindow hApp, 1 'change 0 to 1 to show it again
    14. 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
    Last edited by rdcody; May 29th, 2005 at 05:19 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width