Results 1 to 3 of 3
  1. #1
    polas1's Avatar
    Join Date
    Feb 2015
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    Question How to remove everything after last slash(/) in listbox vb.net

    hi,guys again.

    Really need your help i have tried to find on google How to remove everything after last slash(/) in listbox from multiple items and add in listbox2 list but in listbox1 items leave as it is in vb.net.
    but i didn't find it.

    What i want just leave like this anysite.com - evrything after / remove.

    How do you do that guys.

    Thanks so much in advance.

  2. #2
    Dab's Avatar
    Join Date
    Jun 2015
    Gender
    female
    Posts
    5,426
    Reputation
    663
    Thanks
    9,874
    Use the substring function to remove the Text before / after a character index number.

    Since I've already helped you once with listboxes and explained what you needed to know, I'll go ahead and give you another example of the functionality string manipulation.



    I really hope you are learning something here, I've given you all the knowledge you need to do this on your own. I'm expecting this to be resolved, if you continue this thread with the same question in the OP I wont respond.

    Also for the full references, string class here - https://msdn.microsof*****m/en-us/lib...vs.110%29.aspx
    Last edited by Dab1996426; 08-26-2015 at 04:50 PM.

  3. The Following User Says Thank You to Dab For This Useful Post:

    Sazor98 (09-21-2015)

  4. #3
    Raydenman's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Italy
    Posts
    261
    Reputation
    10
    Thanks
    810
    My Mood
    Amused
    ... Dim output as string = stringtoreplace.split("/").getvalue(0)
    Messagebox.show(output)

Similar Threads

  1. [Tutorial] How to change background music in 4D1 MW 2 after last patch
    By nekromantik in forum Call of Duty Modern Warfare 2 Tutorials
    Replies: 6
    Last Post: 07-27-2013, 11:06 PM
  2. HOW TO REMOVE IP BAN?
    By sacredcrowds in forum WarRock - International Hacks
    Replies: 32
    Last Post: 03-27-2009, 04:14 PM
  3. How to remove most of your Recoil on your gun
    By iceball in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 03-25-2009, 03:53 AM
  4. [tut] how to remove flame filter [tut] CLIENTSIDED!
    By Sjoerd in forum WarRock - International Hacks
    Replies: 21
    Last Post: 03-18-2009, 04:44 AM
  5. how to remove GAME-GUARD???
    By noime1989 in forum Soldier Front Hacks
    Replies: 2
    Last Post: 01-21-2009, 12:05 PM