what's wrong with this?

WebBrowser1.Url = textbox1.text

in vb6 i think it would be ok,

so what's the prob in the 2005 Express Edition

thanks.

Shaul.

 



Answer this question

what's wrong with this?

  • Absolute_Zero

     Blair Allen Stark wrote:

    Navigate gives you a bit more control. . . url string and target

     

    I was always under the impression that Url was read only . . .  maybe that was locatiopn or older browers

    well im not the best man for VB , i just know a bit so i dont realy understand :P

    hm..can u tell me why is this wrong :

    ToolStripStatusLabel2.Text = WebBrowser1.Url

    Err VB 2005 is so different then VB 6 :(

     


  • tomas77777

    oh yeah. . .

    WebBrowser1.Url = new Uri("http://www.microsoft.com")



  • Ron Swank

    ReneeC wrote:

    Yes....

    The label.text is compatible with system.string datatypes. URL is not a string and what you attempted to do should not work.

    lol

    please tell me what a string is

    (i know i know im a noob :( )


  • richard_deeming

    in both .Net and VBSUX, it was

    WebBrowser1.Navigate(textbox1.text)



  • Borelord

    Blair Allen Stark wrote:

    Shaul115 wrote:
    Err VB 2005 is so different then VB 6 :(

    And that is a very good thing! VBSUX should never have been released!

    good or bad, all the staff i knew in VB 6 are now usless

    :(


  • Groundhog

    Hmm, I assume this answering this post is a type of necroing, but perhaps it will help someone.

    To goto the address in your web browser of the text in TextBox1.Text Use the Code as Follows

    WebBrowser1.Navigate(Me.TextBox1.Text)

    This was tested on 8/1/2006 with Visual Basic 2005 Express Edition.


  • Dan Prudhoe

    WebBrowser1.Url is a Uri class (structure )

    use

    webBrowser1.Url.ToString()



  • Jacquemin

    Blair Allen Stark wrote:

    in both .Net and VBSUX, it was

    WebBrowser1.Navigate(textbox1.text)

    yup! that helped!

    but i dont get it,

    in the properties it's called "url" so why Navigate :S


  • Jerry-liu

    Blair Allen Stark wrote:

    oh yeah. . .

    WebBrowser1.Url = new Uri("http://www.microsoft.com")

    but that changes the url for microsofts url, i need it to change to the text in textbox1

    :\


  • xp

    Yes....

    The label.text is compatible with system.string datatypes. URL is not a string and what you attempted to do should not work.



  • chinimimita

    Navigate gives you a bit more control. . . url string and target

     

    I was always under the impression that Url was read only . . .  maybe that was locatiopn or older browers



  • what's wrong with this?