
If (TextBox1.Text = "example" And TextBox2.Text = "example2") Or (TextBox1.Text = "owie" And TextBox2.Text = "yo") Or (TextBox1.Text = "rage" And TextBox2.Text = "noobs") Then
If CheckBox1.Checked = True Then
My.Settings.Text1 = Textbox1.Text
My.Settings.Text2 = Textbox2.Text
My.Settings.Save()
My.Settings.Reload()
End If
MsgBox("Example of use.", MsgBoxStyle.Information, "")
ToolStripStatusLabel5.Text = "-hiya"
Else
MsgBox("Information is incorrect", MsgBoxStyle.Critical, "")
End If
If TextBox1.Text = "Username" And TextBox2.Text = "Password" Then
Msgbox("Success")
If CheckBox1.Checked Then
My.Settings.Text1 = Textbox1.Text
My.Settings.Text2 = Textbox2.Text
My.Settings.Save()
End If
Else
Msgbox("Failure")
End If
If (TextBox1.Text = "user1" & TextBox2.Text = "pass1") or (TextBox1.Text = "user2" & TextBox2.Text = "pass2") Then
If CheckBox1.Checked = True Then
My.Settings.Text1 = Textbox1.Text
My.Settings.Save()
My.Settings.Reload()
ElseIf CheckBox1.Checked = False Then
My.Settings.Text2 = Textbox2.Text
My.Settings.Save()
My.Settings.Reload()
End If
MsgBox("Example of use.", MsgBoxStyle.Information, "")
ToolStripStatusLabel5.Text = "-hiya"
Else
MsgBox("Information is incorrect", MsgBoxStyle.Critical, "")
End If

If CheckBox1.Checked = True Then
My.Settings.Text1 = Textbox1.Text
My.Settings.Save()
My.Settings.Reload()
ElseIf CheckBox1.Checked = False Then
My.Settings.Text2 = Textbox2.Text
My.Settings.Save()
My.Settings.Reload()
End If
Select case checkbox1.checked Case True My.Settings.Text1 = Textbox1.Text My.Settings.Save() My.Settings.Reload() Case False My.Settings.Text2 = Textbox2.Text My.Settings.Save() My.Settings.Reload() end select
If CheckBox1.Checked = True Then
My.Settings.Text1 = Textbox1.Text
My.Settings.Save()
My.Settings.Reload()
Else
My.Settings.Text2 = Textbox2.Text
My.Settings.Save()
My.Settings.Reload()
End If
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "Example" And TextBox2.Text = "Example2" Then
If CheckBox1.Checked Then
MessageBox.Show("Checkbox is ticked do your code here")
Else
MessageBox.Show("Checkbox is NOT ticked do what ever here")
End If
Else
MessageBox.Show("Textbox1 and textbox2 does not = Example and Example2... skipping checkbox check")
End If
End Sub