How to get checkedlistbox to display horizontal

  • Thread starter Thread starter BostonNole
  • Start date Start date
B

BostonNole

Does anyone know how to get the checkedlistbox to display items
horizontally on a windows form?

It seems that it only displays its check box items vertically (up and
down), which is not what I want.

I want to be able to use the CheckedListBox to display the days of the
week going across (horizontally) a windows form.

Thanks.
 
Hello BostonNole,
Does anyone know how to get the checkedlistbox to display items
horizontally on a windows form?

It seems that it only displays its check box items vertically (up and
down), which is not what I want.

I want to be able to use the CheckedListBox to display the days of the
week going across (horizontally) a windows form.

I'm pretty sure that CheckedListBox doesn't support that.

If you're mainly looking for the UI affect, you could have a FlowLayoutPanel
and add a series of CheckBox's to it; one for each day of the week. It takes
away the nicety of the CheckedListBox but it should have the UI you're looking
for.
 
BostonNole said:
Does anyone know how to get the checkedlistbox to display items
horizontally on a windows form?

It seems that it only displays its check box items vertically (up and
down), which is not what I want.

Set the control's 'MultiColumn' property to 'True' and adjust the height of
the control to show only a single item in vertical direction.
 
That did the trick, thank you very much. I knew it had to be something
simple like that.
 
Back
Top