Exemplo n.º 1
0
        private void linkLabelDangKy_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormDangKy2 dk = new FormDangKy2();

            dk.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 private void linkLabelDangKy_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     UI.FormDangKy2 dk = new UI.FormDangKy2()
     {
         Dock = DockStyle.Fill, TopLevel = false, TopMost = true
     };
     dk.FormBorderStyle = FormBorderStyle.None;
     this.panelShow.Controls.Add(dk);
     foreach (Control ctrl in panelShow.Controls)
     {
         if (ctrl != dk)
         {
             ctrl.Dispose();
         }
     }
     dk.Show();
 }