PDA

View Full Version : String To Uri, Visual Basic


Imagine Programming
10-24-2008, 11:37 PM
Hey peepz, i'm trying to learn VB, and now i stopped, because i don't know howto convert a normal string ("http://wooptiedoo.com") to Uri, this is what i have:


Public Structure SearchEngines
Dim Name As String
Dim Url As Uri
End Structure
Function NewEngine(ByVal Title As String, ByRef Url As System.Uri) As SearchEngines
Dim Item As New SearchEngines
Item.Name = Title
Item.Url = Url
Return Item
End Function


Can somebody help me? because it doesn't work...

Thanks, CB