Esempio n. 1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            home1 ii = new home1(label4.Text);

            ii.ShowDialog();
        }
Esempio n. 2
0
        private void button6_Click_1(object sender, EventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Do you want to log out", "logout", MessageBoxButtons.YesNo, MessageBoxIcon.Error);

            if (dialog == DialogResult.Yes)
            {
                this.Hide();
                home1 ii = new home1(label2.Text);
                ii.ShowDialog();
            }
            else
            {
                this.Activate();
            }
        }