mardi 19 juillet 2016

check event on checkbox in checkedListBox

I have a CheckedListBox and Checkbox in it, I need to catch event MouseEnter on CheckBox, not on CheckedListBox. I tried this code:

private: System::Void checkedListBox1_MouseEnter(System::Object^ sender, System::EventArgs^ e)
{
    if (checkedListBox1->Items[0]->GetType()->GetEvent(L"MouseEnter"))
    {
        MessageBox::Show("MouseEnter!");
    }
}

Please help guys...




Aucun commentaire:

Enregistrer un commentaire