private void ThreeDigitSquarebtn_TryAgain_Click(object sender, EventArgs e) { ThreeDigitSquareAns1.Enabled = true; ThreeDigitSquareAns2.Enabled = true; ThreeDigitSquareAns3.Enabled = true; ThreeDigitSquareAns4.Enabled = true; ThreeDigitSquareAns1.Focus(); ThreeDigitSquarebtn_TryAgain.Visible = false; Trick_7_11_13_GroupBoxAnsLables.Visible = false; ThreeDigitSquareHintBox.Visible = true; ClearControls(); TrickThreeDigitSquarebtnCorrect1.Visible = true; TrickThreeDigitSquarebtnCorrect2.Visible = true; TrickThreeDigitSquarebtnCorrect3.Visible = true; TrickThreeDigitSquarebtnCorrect4.Visible = true; ThreeDigitSquarebtnIncorrect1.Visible = true; ThreeDigitSquarebtnIncorrect2.Visible = true; ThreeDigitSquarebtnIncorrect3.Visible = true; ThreeDigitSquarebtnIncorrect4.Visible = true; ThreeDigitSquarebtnLightBulb1.Visible = true; ThreeDigitSquarebtnLightBulb2.Visible = true; ThreeDigitSquarebtnLightBulb3.Visible = true; ThreeDigitSquarebtnLightBulb4.Visible = true; ThreeDigitSquarebtnSubmit.Visible = true; InVisibleControls(); }
//To clear textbox controls and to set focus on the first text box void ClearControls() { ThreeDigitSquareAns1.Clear(); ThreeDigitSquareAns2.Clear(); ThreeDigitSquareAns3.Clear(); ThreeDigitSquareAns4.Clear(); ThreeDigitSquareAns1.Focus(); }
private void ThreeDigitSquare_Load(object sender, EventArgs e) { ThreeDigitSquareHintBox.Visible = true; InVisibleControls(); ThreeDigitSquareAns1.Focus(); }