private void consultaPedidoPeloCódigoToolStripMenuItem_Click(object sender, EventArgs e) { ConsultaPedidoById cpbi = new ConsultaPedidoById(); cpbi.MdiParent = this; cpbi.Show(); }
private void MDIParent1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { ConsultaPedidoById cpbi = new ConsultaPedidoById(); cpbi.MdiParent = this; cpbi.Show(); } }