开发者

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开发者_StackOverflow中文版 control (Again)?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜