Example #1
0
        private void toolStripButton8_Click_1(object sender, EventArgs e)
        {
            MessageBox.Show("ออกจากระบบเรียบร้อย");
            toolStripButton1.Visible  = false;
            toolStripButton2.Visible  = false;
            toolStripButton3.Visible  = false;
            toolStripButton4.Visible  = false;
            toolStripButton5.Visible  = false;
            toolStripButton6.Visible  = false;
            toolStripButton7.Visible  = true;
            toolStripButton8.Visible  = false;
            toolStripButton9.Visible  = false;
            toolStripButton10.Visible = false;
            toolStripButton11.Visible = false;
            label1.Show();
            label2.Show();
            textBox1.Show();
            textBox2.Show();
            button1.Show();
            CloseAllChildForm();
            toolStripButton2.Checked = true;
            frm_login next = new frm_login();

            next.MdiParent = this;
            next.Show();
        }
Example #2
0
        public frm_Main()
        {
            InitializeComponent();
            this.WindowState          = FormWindowState.Maximized;
            toolStripButton1.Visible  = false;
            toolStripButton2.Visible  = false;
            toolStripButton3.Visible  = false;
            toolStripButton4.Visible  = false;
            toolStripButton5.Visible  = false;
            toolStripButton6.Visible  = false;
            toolStripButton7.Visible  = true;
            toolStripButton8.Visible  = false;
            toolStripButton9.Visible  = false;
            toolStripButton10.Visible = false;
            toolStripButton11.Visible = false;
            CloseAllChildForm();
            frm_login next = new frm_login();

            next.MdiParent = this;
            next.Show();
        }