private ComboBoxState GetTextBoxState() { if (!Enabled) return ComboBoxState.Disabled; else if (Focused || ClientRectangle.Contains(PointToClient(Cursor.Position))) return ComboBoxState.Hot; else return ComboBoxState.Normal; }