ComboBox bug or feature?
-
1. Drop a ComboBox on a form. 2. Add 5 items to the ComboBox in the Form_Load event. 3. Run the project. 4. Pull down on the ComboBox. 5. While it is still pulled down click the mouse some place else on the form. 6. Notice that the ComboBox still has focus even though the pull down menu disappears. 7. Once again click the mouse some place else on the form. 8. Now the ComboBox loses focus. I think this is a bug. Any suggestions or feed-back welcome. Thanks.
-
1. Drop a ComboBox on a form. 2. Add 5 items to the ComboBox in the Form_Load event. 3. Run the project. 4. Pull down on the ComboBox. 5. While it is still pulled down click the mouse some place else on the form. 6. Notice that the ComboBox still has focus even though the pull down menu disappears. 7. Once again click the mouse some place else on the form. 8. Now the ComboBox loses focus. I think this is a bug. Any suggestions or feed-back welcome. Thanks.
-
1. Drop a ComboBox on a form. 2. Add 5 items to the ComboBox in the Form_Load event. 3. Run the project. 4. Pull down on the ComboBox. 5. While it is still pulled down click the mouse some place else on the form. 6. Notice that the ComboBox still has focus even though the pull down menu disappears. 7. Once again click the mouse some place else on the form. 8. Now the ComboBox loses focus. I think this is a bug. Any suggestions or feed-back welcome. Thanks.
Yes this is a standard feature. When the DropDown window is displayed it sets MousCapture. The intention is to prevent an accidental command from executing from an inadvertand mouseclick intended to close the dropdown window.