我有CheckedBoxList,当我单击一个元素时,我不希望它被选中(CheckedOnClick = false),但是我想做一个操作(在表单的另一个元素上显示关于这个SelectedItem的信息)
我没有在ListBox.SelectedIndexChanged的CheckedListBox类似的东西上找到任何东西。
知道吗?
发布于 2014-12-27 21:19:55
您需要处理以下CheckedListBox.ItemCheck事件
在项的选中状态更改时发生。
或者CheckedListBox从ListBox继承的ListBox。
继承层次结构
System.Object System.MarshalByRefObject System.ComponentModel.Component System.Windows.Forms.Control System.Windows.Forms.ListControl System.Windows.Forms.ListBox System.Windows.Forms.CheckedListBox
您可以检查CheckedListBox事件列表,它就在那里。因此,除非您使用的是某种第三方控制,它应该是可用的。

https://stackoverflow.com/questions/27671514
复制相似问题