Beispiel #1
0
        private void Date_ValueChanged(object sender, EventArgs e)
        {
            DateTime thisDay = DateTime.Today;

            Date.MaxDate = thisDay;
            CmBxEstado.Focus();
        }
Beispiel #2
0
 private void CmBxEstado_ValueMemberChanged(object sender, EventArgs e)
 {
     try
     {
         estado = CmBxEstado.SelectedItem.ToString();
         if (estado == "")
         {
             MessageBox.Show("No se ha seleccionado ningun dato", "¡Atencion!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             CmBxEstado.Focus();
         }
         else
         {
             TxtBxCantidad.Focus();
         }
     }
     catch
     {
         MessageBox.Show("Valores mal ingresados, seleccione los valores en la flecha", "¡Atención!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         CmBxEstado.Text = "";
     }
 }
Beispiel #3
0
 private void Date_ValueChanged(object sender, EventArgs e)
 {
     fecha = Date.Text;
     CmBxEstado.Focus();
 }