Hack Forums
[.NET] Listbox - Reading out item by item - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Listbox - Reading out item by item (/showthread.php?tid=4895699)



Listbox - Reading out item by item - SyyK - Jul 6, 2015

Hey,


How can I read out every listbox item one by one?


Not like increasing the item +1 in a loop...Because it would crash at the end of the list.


(Looking for a more professional way to do this...)


(Building a proxy checker, thats why I need to select one proxy by another.)


Thanks for any help!


* - He B TeMy - Jul 6, 2015

Professional way? HAHAH

Code
Foreach item as listboxitem in listbox
'Professional code here
End for



* - SyyK - Jul 6, 2015

(Jul 6, 2015 10:57 AM)He B TeMy Wrote:  Professional way? HAHAH

Code
Foreach item as listboxitem in listbox
'Professional code here
End for

Damn, I'm so stupid.

Thanks man haha! 🤣


* - Only3 - Jul 6, 2015

For i = 0 To ListBox1.Items.Count - 1
MsgBox(ListBox1.Items(i))
Next


* - Odus - Jul 6, 2015

(Jul 6, 2015 11:03 AM)Only3 Wrote:  For i = 0 To ListBox1.Items.Count - 1
MsgBox(ListBox1.Items(i))
Next

I say go with HeB's solution if you're not using the position.


* - Only3 - Jul 6, 2015

(Jul 6, 2015 11:57 AM)Odus Wrote:  I say go with HeB's solution if you're not using the position.

😁 then i shoudnt post


* - SyyK - Jul 6, 2015

Best way to check proxies fast would be multithreading right?

Only found ways to create another second threads...How can I create like 50 threads?

Thanks


* - Only3 - Jul 6, 2015

Dim T(49) As Thread
For i = 0 To T.Count - 1
T(i) = New Thread(...
Next