private static void HandleGotFocus(object sender, EventArgs e) { var TextBox = (sender as TextBox); TextBox.BackColor = Color.Yellow; }