private void loginButton_Click(object sender, EventArgs e) { userNameTextBox.Text = "Zahid"; passwordTextBox.Text = "zahid"; UserLoginManager aUserLoginManager = new UserLoginManager(); if (aUserLoginManager.IsExist(userNameTextBox.Text, passwordTextBox.Text)) { MainForm2 mainFormUi = new MainForm2(); mainFormUi.Show(); this.Hide(); } else { MessageBox.Show("User Name OR Password Wrong"); } }