Exemplo n.º 1
0
        private void pbBack_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            ListUsers f2 = new ListUsers();

            f2.TopLevel = false;
            panel1.Controls.Add(f2);
            f2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            f2.Dock            = DockStyle.Fill;
            f2.Show();
        }
Exemplo n.º 2
0
        //MAIN CATEGORY FROM PANEL
        private void pbUsers_Click(object sender, EventArgs e)
        {
            panel1.Location = new Point(
                this.ClientSize.Width / 2 - panel1.Size.Width / 2,
                this.ClientSize.Height / 2 - panel1.Size.Height / 2);

            panel1.Controls.Clear();
            ListUsers f2 = new ListUsers();

            f2.TopLevel = false;
            panel1.Controls.Add(f2);
            f2.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            f2.Dock            = DockStyle.Fill;
            f2.Show();
        }