/// <summary> /// Handles the container clicked event. This is to act as a compatibility /// layer for combobox focus behaviour: if we click on a form, focus is not /// given to the form and scrolling would still remain in the combobox. /// </summary> private static void OnContainerClicked(object sender, EventArgs e) { ScrollableControl container = (ScrollableControl)sender; container.Focus(); }