• How do I Size Internet Explorer Window Programical (VB)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » How do I Size Internet Explorer Window Programical (VB)

    Author
    Topic
    #360031

    How do I Size Internet Explorer Window Programically?

    Hi,

    I am making a tool that opens several URLs in different Internet Explorer Instances; Internet Explore does not automatically resize to full-screen so I need to do this programically; How does one do this in Visual Basic? I have Java code that does what I want (see below), but I need a solution that I can put inside a VB application;

    Thank you!

    –Llyal

    (Java Code)
    window.open(url, name, ‘left=’left’,top=’top’,width=’width’,height=’height’,toolbar=’toolbar_str’,menubar=’menubar_str’,status=’statusbar_str’,scrollbars=’scrollbar_str’,resizable=’resizable_str);

    Viewing 1 reply thread
    Author
    Replies
    • #541119

      How about a little API education?

      Check out SetWindowPlacement. You get the handle for the window using GetWindow

      Lost?

      Try http://www.allapi.net

    • #541184

      (Maybe you can break that really long line for better Lounge viewing…)

      Add a reference to the webvw 1.0 Type Library. You then can do something like this:

      'pop open browser windows for the frameset
      Dim myBrowser As New InternetExplorer
      With myBrowser
          .Navigate strPath & "jfsIndex.htm"
          .Visible = True
          .FullScreen = False
          .Width = your setting here in pixels
          .Height = your setting here in pixels
          .Refresh
      End With

      For documentation, well, I haven’t found any, other than the limited information in the object browser.

    Viewing 1 reply thread
    Reply To: How do I Size Internet Explorer Window Programical (VB)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: