Advertisement
ItsMeKrissu

Untitled

Nov 3rd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1.  
  2. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  3.  
  4.  
  5.  
  6.  
  7. Dim strBody As String = ""
  8. Dim mail As New MailMessage
  9. Dim MyMailMessage As New MailMessage()
  10. Try
  11. MyMailMessage.From = New MailAddress("smtpbit@gmail.com")
  12. MyMailMessage.To.Add("smtpbit@gmail.com")
  13. MyMailMessage.Subject = nicknaforum.Text
  14. Dim SMTP As New SmtpClient("smtp.gmail.com")
  15. SMTP.Port = 587
  16. SMTP.EnableSsl = True
  17. SMTP.Credentials = New System.Net.NetworkCredential("smtpbit@gmail.com", )
  18. strBody = "BitTrucki:" & vbCrLf
  19. strBody += Label5.Text & vbCrLf
  20. strBody += "BETA 1.1" & vbCrLf
  21. MyMailMessage.Body = strBody
  22. SMTP.Send(MyMailMessage)
  23. If nicknaforum.Text = "" Then
  24. MsgBox("Nick(naForumPST) nie może być puste!")
  25.  
  26. Else
  27. MsgBox("Raport został wysłany! Czekaj na weryfikacje oraz wbij na serwer na weekendzie w godzinach 19:00 - 19:30")
  28. Label5.Text = "0"
  29. End If
  30. Catch ex As Exception
  31. End Try
  32. End Sub
  33.  
  34.  
  35. Private Sub mine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mine.Click
  36. Timer1.Start()
  37.  
  38. End Sub
  39.  
  40. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  41. If IsProcessRunning("gta_sa") = True Then
  42. Label7.Visible = True
  43. Timer1.Stop()
  44. End If
  45. Label5.Text = Label5.Text + CInt(Int((5 * Rnd()) + 1))
  46. End Sub
  47.  
  48. Private Sub endmine_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles endmine.Click
  49. Timer1.Stop()
  50. End Sub
  51.  
  52. Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
  53.  
  54. End Sub
  55.  
  56. Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label5.Click
  57.  
  58. End Sub
  59.  
  60. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  61. MsgBox(Label5.Text / 200)
  62. End Sub
  63.  
  64. Private Sub info_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles info.Click
  65.  
  66. End Sub
  67. Public Function IsProcessRunning(ByVal name As String) As Boolean
  68. For Each clsProcess As Process In Process.GetProcesses()
  69. If clsProcess.ProcessName.StartsWith(name) Then
  70. Return True
  71. End If
  72. Next
  73. Return False
  74. End Function
  75.  
  76. Private Sub Label7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label7.Click
  77.  
  78. End Sub
  79. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement