Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Please string to url
#1
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 ?
Reply
#2
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


Code:
Sub New()

End Sub
Reply
#3
This should work for your url problem


Me.loginurl = New Uri("http://www.youtube.com/create_account?next=/")
Reply
#4
KoBE's solution should work, but I suggest that you do not use a WebBrowser under any circumstances. It's a very bad practice.
Reply
#5
I can't understand your problem. Can you please explain better what you are trying to do and post your full source?
My software company: Porosis Software
Games: Terrantula
Apps: Mathanasis, ColorGrabber
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Encrypt String using x509Certificate private Key wih RSA jeffstan 0 2,433 01-26-2014, 04:18 PM
Last Post: jeffstan
  Combination Cracker - String Variant Builder - Developed by AceInfinity AceInfinity 0 1,347 03-15-2012, 06:05 PM
Last Post: AceInfinity
  String MD5 Hasher (Coded by Ace) AceInfinity 20 7,326 10-10-2011, 11:57 AM
Last Post: Greyersting
  [Source] TripleDES String Encryption / Decryption euverve 2 3,342 05-13-2011, 10:35 AM
Last Post: Imports System.Net
  [Source] Encrypt/Decrypt a string using Data Encryption Standard (DES) algorithm euverve 0 1,998 05-12-2011, 08:43 PM
Last Post: euverve

Forum Jump:


Users browsing this thread: 1 Guest(s)