You are not using braces to group multiple lines of code in the if / else statement. Only VB allows this.
C# '101' - It should be:
if ((txtusername.Text == username) && (txtpassword.Text == password))
{
this.Hide();
frm.Show();
MessageBox.Show("Welcome MR.Vector");
}
else
{
MessageBox.Show("Do not try to open this program");
}