How to set the height of a WinForms CheckedListBox to fit to dynamic contents without scrollbars

I recently encountered a problem trying to get the Windows Forms CheckedListBox control to resize it’s height to exactly fit it’s contents (items) without showing scrollbars. Initially I looked at using the obvious PreferredHeight property, but it quickly became evident that the preferred height didn’t give me a useable value. It was out by a... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: