Better WebBrowser

Discussion in 'Programming General' started by dodge, Apr 1, 2007.

Better WebBrowser
  1. Unread #1 - Apr 1, 2007 at 8:52 PM
  2. dodge
    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5

    dodge Active Member
    Banned

    Better WebBrowser

    if you try using the new .net class for the WebBrowser you will notice playing on runescape has some problems, usiong the old AxWebBrowser lib will fix that. Here is a sample code of what I mean

    Code:
    Dim Webpage As AxSHDocVw.AxWebBrowser = New AxSHDocVw.AxWebBrowser  'create new browser instance
            AddHandler Webpage.BeforeNavigate2, AddressOf Me.Webpage_BeforeNavigate2
            AddHandler Webpage.NavigateComplete2, AddressOf Me.Webpage_NavigateComplete2
            Webpage.RegisterAsBrowser = True
            Webpage.Silent = True
            Webpage.Visible = True 
            Webpage.Navigate("URL")
    
    AxShDocVw is a wrapper for SHDocVw, you will notice using the page is much better.

    I don’t think AxShDocVw is available on vs2005 no more but you can still reference the library if you have the file. Not sure about rules on posting a file like that on this forum but I’m sure you can Google this and find the file
     
< Code Release! | invisible backround >

Users viewing this thread
1 guest


 
 
Adblock breaks this site