private void BookAmountCueText_Click(object sender, EventArgs e) { if (BookAmountTextBox.Text == "") { BookAmountCueText.Hide(); BookAmountTextBox.Focus(); } }
private bool CheckInput() { try { var amount = Convert.ToInt32(BookAmountTextBox.Text); } catch { MessageBox infoBox = new MessageBox(13); infoBox.ShowDialog(); infoBox.Dispose(); BookAmountTextBox.Focus(); return(false); } return(true); }