public frmBorrowedBookAddingList(frmBorrowedBooks f) { InitializeComponent(); cn = new SqlConnection(dbcon.MyCon()); LoadBooks(); frm = f; }
private void button2_Click(object sender, EventArgs e) { frmBorrowedBooks frm = new frmBorrowedBooks(); frm.TopLevel = false; panel3.Controls.Add(frm); frm.BringToFront(); frm.Show(); }