private void FrmCOreporteOCxProv_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.N && e.Control)
      {
          frmcoproveedor_qry frmp = new frmcoproveedor_qry();
          frmp.FormParent = this;
          frmp.ShowDialog();
      }
      else if (e.KeyCode == Keys.F3)
      {
          PrintReport("");
      }
      else if (e.KeyCode == Keys.F2)
      {
          ExportReport("");
      }
      else if(e.KeyCode == Keys.Space)
      {
          this.Close();
      }
 }
 private void btnProv_Click(object sender, EventArgs e)
 {
     frmcoproveedor_qry frmp  = new frmcoproveedor_qry();
     frmp.pasard += new frmcoproveedor_qry.pasar(ejecutarProv);
     frmp.ShowDialog();
     txtIdProv.Focus();
 }
 private void btnNuevo_Click(object sender, EventArgs e)
 {
     frmcoproveedor_qry frmp = new frmcoproveedor_qry();
     frmp.FormParent = this;
     frmp.ShowDialog();
 }
 private void txtIdProv_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F1)
     {
         frmcoproveedor_qry frmp = new frmcoproveedor_qry();
         frmp.pasard += new frmcoproveedor_qry.pasar(ejecutarProv);
         frmp.ShowDialog();
         txtIdProv.Focus();
     }
 }