private void Date_ValueChanged(object sender, EventArgs e) { DateTime thisDay = DateTime.Today; Date.MaxDate = thisDay; CmBxEstado.Focus(); }
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 = ""; } }
private void Date_ValueChanged(object sender, EventArgs e) { fecha = Date.Text; CmBxEstado.Focus(); }