public frmBookAdd(frmBooksDetails f)
 {
     InitializeComponent();
     cn = new SqlConnection(dbcon.MyCon());
     frm.LoadRecord();
     frm = f;
 }
        private void btnAll_Click(object sender, EventArgs e)
        {
            frmBooksDetails frm = new frmBooksDetails();

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