private void logoutBtn_Click(object sender, EventArgs e) { var newLogIn = new LogInForm(); newLogIn.Show(); this.Close(); }
public MainForm() { WindowState = FormWindowState.Minimized; ShowInTaskbar = false; Visible = false; InitializeComponent(); var newLogInForm = new LogInForm(); newLogInForm.Show(); }