ToolStripDropDown - ToolStripControlHost with ComboBox problem
-
Using VS 2008. I have a ToolStripDropDown with a ToolStripControlHost containing a ComboBox (plus other controls). I have a handler attached to the ToolStripDropDown Closing event. The ComboBox has 8 items. When the list is dropped down the lower 5 items protrude beneath the ToolStripDropDown and overlay the form beneath. (At this point ToolStripDropDown.AutoClose is set to True.I need it set to this at this point) When any of these lower 5 items are selected in the list, the ToolStripDropDown Closing event is fired with ToolStripDropDownClosingEventArgs of ToolStripDropDownCloseReason.AppClicked. If any of the top 3 items ( the items of the list within the bounds of the ToolStripDropDown )are selected, it works as expected ie. no Closing event. If the Closing event handler is disabled temporarily, any of the 8 items can be selected. I'm guessing that when the portion which is overlaying the form is clicked, the dropdown list disappears and somehow the click is seen on the form? Is this normal behaviour? If so is there a way to work around? Thanks for any help.....