private void OnListBoxGotFocus(object sender, EventArgs e) { UpdateStateAndPalettes(); _listBox.Invalidate(); PerformNeedPaint(true); OnGotFocus(e); }