'// Has proxies been used?
If (formProxies.listViewProxies.Items.Count > 0) Then
'// Initialise the random user agent code
Dim randomProxy As New Random
'// Set a variable to store the random proxy
Dim randonProxySelected = formProxies.listViewProxies.Items.Item(randomProxy.Next(0, formProxies.listViewProxies.Items.Count))
'// If it's greater than 0 there are proxies loaded
Dim ProxyArray As Array = Split(randonProxySelected.Text, ":")
'MessageBox.Show(ProxyServer)
Dim ProxyServer As String = ProxyArray(0).ToString
Dim ProxyPort As Integer = ProxyArray(1).ToString
'// Setup the proxy
.Proxy = New WebProxy("http://" & ProxyServer & ":" & ProxyPort)
End If