Beispiel #1
0
 //override para abrir o caixa
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     try
     {
         switch (keyData)
         {
         case Keys.Control | Keys.O:
             FormValorInicial frm = new FormValorInicial();
             frm.ShowDialog();
             DadosSobreVendas();
             break;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }
Beispiel #2
0
        private void label1_Click(object sender, EventArgs e)
        {
            FormValorInicial frm = new FormValorInicial();

            frm.ShowDialog();
        }