ComboBox with CheckBoxes in WinForms [closed]

♀尐吖头ヾ 提交于 2019-12-21 02:04:44

问题


I am trying to implement a CheckBox ComboBox. I followed this link as a reference

http://www.codeproject.com/Articles/31105/A-ComboBox-with-a-CheckedListBox-as-a-Dropdown?msg=4152597#xx4152597xx

But there are some problems with this example.

1) After the drop-down list is shown, the very first mouse single-click to change the selected item's check-status always fails to do so, but succeeding single-clicks are fine. It seems the very first single-click is swallowed. I did some trace works but failed to find an answer.

2) The form loses focus when the list opens.

来源:https://stackoverflow.com/questions/9214564/combobox-with-checkboxes-in-winforms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!