Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MeniuInterogare mi = new MeniuInterogare();

            mi.Show();

            this.Hide();
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                SqlConnection con = new SqlConnection(sqlCon);
                con.Open();

                if (con.State == ConnectionState.Open)
                {
                    MeniuInterogare mi = new MeniuInterogare();
                    this.Hide();
                    mi.Show();
                }
            }

            catch (Exception exc)
            {
                MessageBox.Show(exc.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }