Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "rfb" And TextBox2.Text = "reflection" Then Form2.Show() Else MsgBox("Sorry, username or password not found", MsgBoxStyle.OkOnly, "Invalid") End If End Sub