Sign in to follow this  

[.net] AxSHDocVw.AxWebBrowser(SOLVED)

Recommended Posts

I'm trying to use the COM component web browser control AxSHDocVw.AxWebBrowser to display a web page on a windows form inside a tab on a tab control using VB.NET. Did that come out straight? I'm just using the gamedev page for testing, I'll later point to a page on our intranet. Anyway, here is the code:
                    Dim webBrowser As New AxSHDocVw.AxWebBrowser
                    CType(webBrowser, System.ComponentModel.ISupportInitialize).BeginInit()
                    webBrowser.Enabled = True
                    CType(webBrowser, System.ComponentModel.ISupportInitialize).EndInit()
                    webBrowser.Dock = Dockstyle.Fill
                    webBrowser.Navigate2("", 0, 0, 0, 0)
                Catch ex As Exception
                    MessageBox.Show(ex.ToString, "Crash and Burn", MessageBoxButtons.OK)
                End Try
It doesn't crash anymore, but nothing shows up in the tab. I've gotten it to open up in a new IE window before, but just can't get it to go in the tab. Has anyone tried this before? EDIT: Nevermind, I figured it out. [Edited by - Wolfmanyoda on December 4, 2005 11:09:46 AM]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this