Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Net.Mail
- Public Class Login
- Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
- If CheckBox1.Checked = True Then
- If Not My.Settings.MyPassword = TextBox1.Text + TextBox2.Text Then
- My.Settings.MyUsername = TextBox1.Text
- My.Settings.MyPassword = TextBox2.Text
- My.Settings.Save()
- e.Cancel = False
- End
- End If
- End If
- End Sub
- Private Sub Login_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- TextBox1.Text = My.Settings.MyUsername
- TextBox2.Text = My.Settings.MyPassword
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If TextBox1.Text = "" Then
- MsgBox("Username Is Missing")
- If TextBox2.Text = "" Then
- MsgBox("Password Is Mising")
- Else
- End If
- End If
- MsgBox("Login Succesfull", MsgBoxStyle.Information, "Yes ! ")
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement