示例#1
0
        private void btndistrict_Click(object sender, EventArgs e)
        {
            FrmDistrictDetails frm = FrmDistrictDetails.getinstance();

            frm.TopLevel = false;
            btnlist.Controls.Add(frm);
            frm.BringToFront();
            frm.Show();

            SidePanel.Height = btndistrict.Height;
            SidePanel.Top    = btndistrict.Top;
        }