There is a regular CheckedListBox
, it has one element - CheckBox
, I need to catch an event when I click on a mouse not on CheckedListBox
, but on CheckBox
, which is in it, I try this:
private: System::Void checkedListBox1_MouseEnter(System::Object^ sender, System::EventArgs^ e) { if (checkedListBox1->Items[0]->GetType()->GetEvent(L"Click")) { MessageBox::Show("Click!"); } }
ItemCheckEventArgs
parameterItemCheckEventArgs
index of the item that was changed. See the sample code in C # - everything is painted there. - Alexander Petrov