Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I Size Internet Explorer Window Programical (VB)

    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='heigh t',toolbar='toolbar_str',menubar='menubar_str',sta tus='statusbar_str',scrollbars='scrollbar_str',res izable='resizable_str);

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How do I Size Internet Explorer Window Programical (VB)

    How about a little API education?

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

    Lost?

    Try <A target="_blank" HREF=http://www.allapi.net>http://www.allapi.net</A>
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: How do I Size Internet Explorer Window Programical (VB)

    (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:

    <pre>'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</pre>

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

Posting Permissions

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