Exemple #1
0
        private void PictureBox1_Click(object sender, EventArgs e)
        {
            this.panel_entrada.Visible = false;
            panel_welcome painel = new panel_welcome();

            painel.TopLevel = false;
            this.Controls.Add(painel);
            this.Tag = painel;
            painel.Show();
        }
Exemple #2
0
        //codigo para abrir o painel da escolha entre o painel
        //do login ou o do registo
        private void abrirPainel_escolha(object Formlog)
        {
            if (this.panel_receive.Controls.Count > 0)
            {
                this.panel_receive.Controls.RemoveAt(0);
            }

            panel_welcome log = new panel_welcome();

            log.TopLevel = false;
            this.panel_receive.Controls.Add(log);
            this.panel_receive.Tag = log;
            log.Show();
        }