CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Maximize IE

  1. #1
    Join Date
    May 2001
    Posts
    46

    Maximize IE

    I'm running IE from my app, I have the following code:



    Dim IEObj as Object

    set IEObj = CreateObject("InternetExplorer.Application")

    IEObj.navigate WPPLogin

    IEObj.Visible = true

    IEObj.WindowState = vbMaximized




    but IE it's not maximizing, and VB reports that the object does not recognize this property.

    Does anyone know which property would do this?.

    Thanks in advance.

    Alejandro.



  2. #2
    Join Date
    Jun 2001
    Posts
    21

    Re: Maximize IE

    With APIS.

    Enumerate all windows until you get one that ends with microsoft internet explorer.
    Then get the hWnd and send a message to maximize it using SendMessage api.


    without apis.

    Add a project reference to c:\windows\system\shdocvw.dll (which is the IE dll).

    And then use the InternetExplorer object instead of the above code. You'll get the hwnd easily and then can send the appropriate message or use the appropriate apis. You'll also have the fullscreen property and so on.


  3. #3
    Join Date
    May 2001
    Posts
    46

    Re: Maximize IE

    How do I use shdocvw.dll ?


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

Featured