private void tileItem1_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { this.panel2.Controls.Clear(); frmDKHP2 dk = new frmDKHP2(lblMSV.Text); dk.TopLevel = false; this.panel2.Controls.Add(dk); dk.Show(); this.Dock = System.Windows.Forms.DockStyle.Fill; }
private void btnDKHP_Click(object sender, EventArgs e) { panel2.Visible = false; this.panel2.Controls.Clear(); frmDKHP2 dk = new frmDKHP2(lblMSV.Text, lblNam.Text); dk.TopLevel = false; this.panel2.Controls.Add(dk); dk.Show(); bunifuTransition1.Show(panel2); this.Dock = System.Windows.Forms.DockStyle.Fill; }