private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_login frm = new frm_login();

            frm.Show();
            this.Hide();
        }
Пример #2
0
        private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            txt_receivemessage.AppendText("A user has left the chat system" + "\n" + Environment.NewLine);
            for (int i = Application.OpenForms.Count - 1; i != -1;)
            {
                Application.OpenForms[i].Dispose();
                break;
            }

            frm_login frm = new frm_login();

            frm.Show();
            this.Hide();
        }