How to get checkedlistbox to display horizontal

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.
 
J

Jared Parsons [MSFT]

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.
 
H

Herfried K. Wagner [MVP]

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.
 
B

BostonNole

That did the trick, thank you very much. I knew it had to be something
simple like that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top