I don't understand. Are you trying to clear it?
ListBox1.Items.Clear
ok so i want to "restart a listbox" what i mean is once it reaches the last item in the listbox i want it to go back to the beginning how would i do this? Thanks
I don't understand. Are you trying to clear it?
ListBox1.Items.Clear
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
I am sorry I am not trying to clear it so I will try to describe it better. Ok so I have a listbox running off of a loop so the selected index keeps changing (The code for it to change:) once it reaches the end the program crashes. So i was wondering how to make it go toCode:listbox1.selectedindex +=1or the beginning of the the listbox once it reaches the end of the listbox.Code:listbox1.selectedindex = 0
I can try to re reword it if you still don't understand.
[highlight=vb.net]
If ListBox1.SelectedIndex = ListBox1.Items.Count - 1 Then
ListBox1.SelectedIndex = 0
Else
ListBox1.SelectedIndex += 1
End If
[/highlight]
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)
trevor206 (08-27-2011)
Thanks that worked just fine
Marked solved then.
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)