private void documentsSettingToolStripMenuItem_Click(object sender, EventArgs e) { try { CloseAllAciveForms(); frmDocuments objfrmDocuments = new frmDocuments(); objfrmDocuments.TopLevel = false; plSettingsMenu.Controls.Add(objfrmDocuments); objfrmDocuments.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; objfrmDocuments.Dock = DockStyle.Fill; objfrmDocuments.Show(); } catch { } }
private void button15_Click(object sender, EventArgs e) { frmDocuments objfrmDocuments = new frmDocuments(); objfrmDocuments.Show(); }