"Extract"?
Listbox2.items.add (Listbox1.Items.indexof(0))
Something like that, amirite?
I need help extracting the filename from an item on a listbox
i want to extract the "Test.txt" into a second listbox any ideas?Code:Ex. C:\Documents and Settings\User\My Documents\Test.txt
"Extract"?
Listbox2.items.add (Listbox1.Items.indexof(0))
Something like that, amirite?
Listbox2.Items.Add(ListBox1.Items(0).Substring(Lis tbox1.Items.LastIndexOf("\")))
Yeah it would only return an integer, seeing as all he did was search for the index of an integer, which your ListBox may not even contain.
Try something like this.
[php]
For each lbItem As String in ListBox1.Items
ListBox2.Items.Add(IO.Path.GetFileName(lbItem))
Next
[/php]
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
FatCat00 (10-24-2010)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Mkay solved then