Results 1 to 3 of 3

Thread: Reinitializing Internet Explorer in VB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2004
    Location
    Texas
    Posts
    144

    Reinitializing Internet Explorer in VB

    Hi,
    I wrote a program to change the Internet Explorer branding logo (upper right directly below the "X" of the Ie window). If Ie is not running, everything works as expected. But when Ie is running, my program changes the "animated flag" to my own branding logo. However, the logo won't physically display to the new logo until Ie is closed and reopened. My question is, are there APIs that I can call to reinitialize Ie to get the affect just as I close and reopen Ie?

    BTW, F5 or regular refresh on Ie woundn't solve the problem

    Thanks in advance,

    PhiL
    Last edited by Iat; Jun 27th, 2004 at 10:34 AM.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    assuming you have the window handle of the internet explorer window , you can use the UpdateWindow api to show any changes you have made
    VB Code:
    1. [color=blue]Private Declare Function[/color] UpdateWindow [color=blue]Lib[/color] "user32.dll" ([color=blue]ByVal[/color] hwnd [color=blue]As Long[/color]) [color=blue]As Long[/color]
    2.  
    3.  
    4. [COLOR=green]'/// to use ....[/COLOR]
    5. [COLOR=blue]Dim[/COLOR] handle [COLOR=blue]As Long[/COLOR]
    6. handle = " * * * the handle of your internet explorer window here * * * "
    7. UpdateWindow handle
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727
    quite interested to know if this worked! did it?

    cheers,

    wc.
    When your car breaks down,
    close all windows and retry

    => please rate all users posts! <=

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