Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordWrap in CheckedListBox control

I have a CheckedListBox in my Windows forms application, but items can be added that are to wide for the control to display. Is there any way to have the text wrap to the next line when this occurs?

I know with a standard ListBox this would not work, since it would be hard to tell the difference between the second line of one item and the next item. But with a CheckedListBox the beginning of the items in the list are defined by the CheckBox, so it should be easy to differentiate between items.

Is this possible? Will I have to create my own control (Again)?

like image 267
Tester101 Avatar asked Feb 12 '26 23:02

Tester101


1 Answers

The CheckedListBox does not support this, but you can use a DataGridView with two columns (checkbox column, text column) to achieve this with very little effort.

like image 95
Tergiver Avatar answered Feb 15 '26 11:02

Tergiver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!