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