Code:
Public Sub New()
Me.acnt = 0
Me.ctr = 1
Me.masterctr = 0
Me.loginurl = "http://www.youtube.com/create_account?next=/"
End Sub
I have set loginurl as string but in vb2010 its showing Error, that we cant set a url to string ? but i have done this before in vb 2008 .
and also its showing error when i create a new sub
Code:
Public Sub New()
End Sub
any help please ?
Hey for setting a string as a url just do
Code:
Dim sSite as string = "http://www.google.com/"
webbrowser1.navigate(sSite)
For the sub just do
This should work for your url problem
Me.loginurl = New Uri("http://www.youtube.com/create_account?next=/")
KoBE's solution should work, but I suggest that you do not use a WebBrowser under any circumstances. It's a very bad practice.
I can't understand your problem. Can you please explain better what you are trying to do and post your full source?