not sure what to call it...

Getox

Well-known member
Joined
Jul 8, 2004
Messages
122
Well im trying to make a scall web browser but i cant get it go to the page thats in the text box
im trying this:
Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.AxWebBrowser1.Navigate("%TextBox1%")
    End Sub
iv tried {TextBox1} $TextBox1, and cant seem to find the thing to make it go to the url in the text box :(
what is the code to make it do that?

thanks.
 
Try this:

Me.AxWebBrowser1.Navigate(TextBox1.Text)

Where TextBox1 is the name of the textbox.

Ive got not idea what AxWebBrowser1 is in your application, but I think this is what you are looking for.
 
i think a "AxWebBrowser1" is the default id the control gets when you add the web browser com control to the project.

Getox:
I dont know if you are making a browser or what your goal is. But there is a nifty section of the framework that you can use to get the source of a website, for tasks such as parsing it out to get certain information and what not. its called HttpWebRequest. I have used it in the past to do manipulation on SQL reporting services on asp.net because I wanted to do somethings that reporting services just didnt offer hehe
 
Back
Top