コード例 #1
0
 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();
      }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 private void btnNuevo_Click(object sender, EventArgs e)
 {
     frmcoproveedor_qry frmp = new frmcoproveedor_qry();
     frmp.FormParent = this;
     frmp.ShowDialog();
 }
コード例 #4
0
 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();
     }
 }