Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of checkedlistbox selection highlighting effect?

When an item is clicked in the checkedlistbox, it gets highlighted. How can I prevent this highlighting effect?

I can hook into the SelectedIndexChanged event and clear the selection, but the highlighting still happens and you see a blip. In fact, if you hold down the mouse click, never releasing it after you clicked on the checkbox area, the selection remains highlighted until you release the mouse button. I basically want to get rid of this highlighting effect altogether.

like image 881
Emrah Diril Avatar asked Dec 02 '08 16:12

Emrah Diril


1 Answers

Use the following:

private void checkedListBox1__SelectedIndexChanged(object sender, EventArgs e)
        {
            checkedListBox1.ClearSelected();
        }
like image 141
victoria Avatar answered Oct 14 '22 02:10

victoria