Advertisement
Guest User

Untitled

a guest
Feb 19th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.18 KB | None | 0 0
  1. Private Function CheckOne(TheData As Textbox, Target As TextBox)
  2.     lblChecked.Text = lblChecked.Text + 1      
  3.         Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://www.downforeveryoneorjustme.com/" & Target.Text & "")
  4.            Dim response As System.Net.HttpWebResponse = request.GetResponse()
  5.  
  6.             Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
  7.  
  8.             Dim sourcecode As String = sr.ReadToEnd()
  9.  
  10. TheData.Text = sourcecode
  11.         Return CheckOne
  12. End Function   
  13.        
  14.  
  15. Private Function MultiCheck(StrData As TextBox, StrTargets As ComboBox)
  16.                            
  17.         With StrTargets
  18.             For ctr = 0 To StrTargets.Items.count - 1
  19.                        
  20.                                     Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://www.downforeveryoneorjustme.com/" & StrTargets.SelectedText & "")
  21.             Dim response As System.Net.HttpWebResponse = request.GetResponse()
  22.             Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
  23.        
  24.             Dim sourcecode As String = sr.ReadToEnd()
  25.  
  26. StrData.Text = sourcecode
  27.         Next
  28.     End With
  29.         Return MultiCheck
  30.         End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement