In my WinForms app I've added a CheckedListBox to the top of one of my forms.
In it will be some checkboxes that are used to do filtering of the data on
the form. The number of checkboxes that appear is directly related to the
data present. Thus the number of checkboxes displayed is completely variable.
To conserve space, I've made this listbox a horizontal one, and just one or
two rows in height. What I ideally want to do is monitor whether all the
checkboxes can fit on just one row, in which case I'll make the control a
smaller height. But if more checkboxes are present then I'll make it two
rows in height.
But I can't figure out which property or event to check/monitor in order to
detect when the horizontal scrollbar appears. I tried "HorizontalScrollBar"
and "Layout" but neither seemed to work.
Any ideas?
--
Robert W.
Vancouver, BC
www.mwtech.com