private void btnSwitchUsr_Click(object sender, EventArgs e)
{
System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ThreadProc));
t.Start();
this.Close();
}
public static void ThreadProc()
{
Application.Run(new frmLogin ());
}
btnSwitchUsr در فرمی که می خای بسته بشه قرار داره.
frmLogin فرمی که یوزر و پسورد می گیره