Hamed Ap Hamed Ap - 1 year ago 115
Vb.net Question

remove before specific word in vb.net

how to remove texts up to one word in textbox ?

Example :

Textbox.text = "http://google.com/text/word"

i want to have just WORD in that textbox .

Answer Source


Dim uri = New Uri("http://google.com/text/word")
Dim word = uri.Segments(uri.Segments.Length - 1)
Textbox.text = word
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download