vb.net read string after certain character -
i have listbox has random urls + basic info, eg:
[search website] - http://www.google.com/ [games website] - http://www.miniclip.com/
each line item.
when try use code, crashes:
private sub doubleclickitem(sender object, e eventargs) handles listbox1.doubleclick dim url string = listbox1.selecteditem process.start(url) end sub
the error the first characters unknown process.start
.
how can start url? told me have read lines after first " - ". right? if so, how can so?
this should it:
url = url.substring(url.lastindexof(" - ") + 3)
Comments
Post a Comment