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.

[180 byte] By [the_system] at [2007-12-22]
# 1

in both .Net and VBSUX, it was

WebBrowser1.Navigate(textbox1.text)

BlairAllenStark at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

oh yeah. . .

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

BlairAllenStark at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 3
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

:\

Shaul115 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 4
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

Shaul115 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 5

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?

BlairAllenStark at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 6
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 :(

Shaul115 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 7

WebBrowser1.Url is a Uri class (structure?)

use

webBrowser1.Url.ToString()

BlairAllenStark at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 8

Yes....

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

ReneeC at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 9
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 :( )

Shaul115 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 10
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

:(

Shaul115 at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 11

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.

zetamine at 2007-8-30 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...