private void frmStoreMain_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { frmSupplier supplier = new frmSupplier(); supplier.MdiParent = this; supplier.Show(); } else if (e.KeyCode == Keys.F2) { frmItem Itemm = new frmItem(); Itemm.MdiParent = this; Itemm.Show(); } else if (e.KeyCode == Keys.F3) { frmstock stock = new frmstock(); stock.MdiParent = this; stock.Show(); } else if (e.KeyCode == Keys.F4) { frmsale sales = new frmsale(); sales.MdiParent = this; sales.Show(); } else if (e.KeyCode == Keys.F10) { this.Close(); } }
private void tsbBilling_Click(object sender, EventArgs e) { frmsale sales = new frmsale(); sales.MdiParent = this; sales.Show(); }