예제 #1
0
        private void MainScreen_Load(object sender, EventArgs e)
        {
            _obj = this;

            UserControlInicio uc = new UserControlInicio();

            uc.Dock = DockStyle.Fill;
            PanelContenedor.Controls.Add(uc);
        }
예제 #2
0
        private void BtnInicio_Click(object sender, EventArgs e)
        {
            PanelContenedor.Show();
            userControlInicio1.SendToBack();
            PanelContenedor.Controls.Clear();
            UserControlInicio thisprobando = new UserControlInicio();

            PanelContenedor.Controls.Add(thisprobando);
            thisprobando.Show();

            /*PanelContenedor.Hide();
             * if (!userControlInicio1.Controls.Contains(UserControlInicio.Instance))
             * {
             *  userControlInicio1.Controls.Add(UserControlInicio.Instance);
             *  UserControlInicio.Instance.Dock = DockStyle.Fill;
             *  UserControlInicio.Instance.BringToFront();
             * }
             * else
             * {
             *  UserControlInicio.Instance.BringToFront();
             * }*/
        }