//--------------------------------------------------------------------------------------------------------------- //Moviendo el foco al precionar enter en los campos ------------------------------------------------------------- private void TrabajoIdNumericUpDown_KeyPress(object sender, KeyPressEventArgs e)// Del id trabajo al Boton buscar { if ((int)e.KeyChar == (int)Keys.Enter) { BuscarButton.Focus(); } }
//-------------------------------------------------------------------------------------------------------- //Moviendo el foco al precionar enter en los campos ------------------------------------------------------------- private void ClienteIdNumericUpDown_KeyPress(object sender, KeyPressEventArgs e) // Del Id del cliente al boton buscar { if ((int)e.KeyChar == (int)Keys.Enter) { BuscarButton.Focus(); } }
void ReleaseDesignerOutlets() { if (BuscarButton != null) { BuscarButton.Dispose(); BuscarButton = null; } if (CategoryText != null) { CategoryText.Dispose(); CategoryText = null; } if (CountText != null) { CountText.Dispose(); CountText = null; } if (IdText != null) { IdText.Dispose(); IdText = null; } if (NameText != null) { NameText.Dispose(); NameText = null; } if (PriceText != null) { PriceText.Dispose(); PriceText = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (ValidarButton != null) { ValidarButton.Dispose(); ValidarButton = null; } }