Example #1
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            frmUser frm = new frmUser();

            frm.TopLevel = false;
            panelView.Controls.Clear();
            panelView.Controls.Add(frm);
            frm.Dock = DockStyle.Fill;
            frm.Show();
        }
Example #2
0
 private void tab_adduser_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tab_adduser.SelectedIndex == 1)
     {
         frmUser frm = new frmUser();
         frm.TopLevel = false;
         panel_adduser.Controls.Clear();
         panel_adduser.Controls.Add(frm);
         frm.Show();
     }
 }