private void loginbutton_Click(object sender, EventArgs e) { UserLoginManager userLoginManager = new UserLoginManager(); string result = userLoginManager.CheckLogin(useIDtextBox.Text, passwordtextBox.Text); MessageBox.Show(result); if (result == "Login Successful") { StockManagementUI stockManagementUi = new StockManagementUI(); stockManagementUi.Show(); } }