VB.NET ListBox
2013-07-16, 12:52 AM,
#1
Has anyone an ideea how to load proxies form a ListBox to use in a WebBrowser?

I have this:
WebBrowser1
ListBox1 (with ~1k - 2k proxies)(under format: ip:port)

And i want to pick up first proxy, navigate to a webpage, after that pick the second proxy and do the same thing.


Sorry for my bad english
Reply
2013-07-16, 01:29 AM,
#2
You should read this: http://msdn.microsoft.com/en-us/library/...-snippet-1

I'm still a noob, I don't have time to write the code for your whole problem :)

[Image: Cq7OnC1.png]
If You Don’t Build Your Dreams, Someone Will Hire You To Help Build Theirs
Reply
2013-09-28, 03:12 PM,
#3
ListBox.SelectedIndex Property

Private Sub RemoveTopItems()
' Determine if the currently selected item in the ListBox
' is the item displayed at the top in the ListBox.
If listBox1.TopIndex <> listBox1.SelectedIndex Then
' Make the currently selected item the top item in the ListBox.
listBox1.TopIndex = listBox1.SelectedIndex
End If
' Remove all items before the top item in the ListBox.
Dim x As Integer
For x = listBox1.SelectedIndex - 1 To 0 Step -1
listBox1.Items.RemoveAt(x)
Next x

' Clear all selections in the ListBox.
listBox1.ClearSelected()
End Sub 'RemoveTopItems
Reply
2013-09-28, 03:21 PM,
#4
Reply
2013-09-28, 03:29 PM,
#5
You can do this:

For Each Proxy in ListBox
'Do stuff
Next

This is just general concept, but if you got the idea, you can code it easily.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Aeonsofts VB.NET Theme Manager v2.1 lanzye 32 10,301 2017-10-28, 04:51 PM
Last Post: waiphyoe
  .Net Expert Required insomniac 6 1,606 2016-09-08, 08:38 PM
Last Post: styx
  VB NET FORM APPLICATION QwertySon 12 1,820 2016-04-27, 08:00 PM
Last Post: Harrington
  HttpWebRequest POST Method Visual Basic . net QwertySon 5 1,484 2016-03-17, 02:59 PM
Last Post: QwertySon
  Youtube api v2 to v3 .net evolution74 7 978 2015-06-05, 02:41 AM
Last Post: Jonz





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top