Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
        private void tsbStock_Click(object sender, EventArgs e)
        {
            frmstock stock = new frmstock();

            stock.MdiParent = this;
            stock.Show();
        }