vb.net read string after certain character
i have an listbox which has some random URLs + basic info eg: [search
website] - http://www.google.com/ [games website] -
http://www.miniclip.com/
each line is an item, the problem is: when i try to use this code
Private Sub doubleclickitem(sender As Object, e As EventArgs) Handles
ListBox1.DoubleClick
Dim url As String = ListBox1.SelectedItem
Process.Start(url)
End Sub
it crashes, the reason is the first characters are unknown for
Process.Start how can i start the url? someone told me i have to read the
lines after the first " - " how to do so?
No comments:
Post a Comment