protected void TextBox2_TextChanged(object sender, EventArgs e) { TextBox2.Text = TextBox2.Text.ToUpper(); ImageButton1.Focus(); }
void ReleaseDesignerOutlets() { if (ImageButton1 != null) { ImageButton1.Dispose(); ImageButton1 = null; } if (ImageButton2 != null) { ImageButton2.Dispose(); ImageButton2 = null; } if (ImageButton3 != null) { ImageButton3.Dispose(); ImageButton3 = null; } if (ImageButton4 != null) { ImageButton4.Dispose(); ImageButton4 = null; } if (ImageButton5 != null) { ImageButton5.Dispose(); ImageButton5 = null; } if (ImageButton6 != null) { ImageButton6.Dispose(); ImageButton6 = null; } if (ImageButton7 != null) { ImageButton7.Dispose(); ImageButton7 = null; } if (ImageButton8 != null) { ImageButton8.Dispose(); ImageButton8 = null; } if (ImageButton9 != null) { ImageButton9.Dispose(); ImageButton9 = null; } if (MessageOfWinnerText != null) { MessageOfWinnerText.Dispose(); MessageOfWinnerText = null; } if (PlayAgainButton != null) { PlayAgainButton.Dispose(); PlayAgainButton = null; } if (PlayerTurnText != null) { PlayerTurnText.Dispose(); PlayerTurnText = null; } if (ResetButton != null) { ResetButton.Dispose(); ResetButton = null; } if (PlayerXLabel != null) { PlayerXLabel.Dispose(); PlayerXLabel = null; } if (PlayerOLabel != null) { PlayerOLabel.Dispose(); PlayerOLabel = null; } }