Click here to Skip to main content
15,917,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi... i am creating a window form in which i have created a download manager
in this user save all his URL to a text file..and when user clicks on it, it starts downloading..
but the problem is it display the name of image as 0,1,2,3,4,5,6 etc
so i want to give the name as the last word of URL
like for eg if my URL is "http://www.monsoondata.org/wx/changfs.png"
so i want that it should display the name like changfs.png
so plz tell me how should i do this??
Posted

1 solution

VB
Dim url As String = "http://www.monsoondata.org/wx/changfs.png"
Dim ArrayURL As String() = url.Split("/"C)
Dim imagename As String = ArrayURL(ArrayURL.Length - 1)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900