By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,028 Members | 1,733 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,028 IT Pros & Developers. It's quick & easy.

How to get checkedlistbox to display horizontal

P: n/a
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.

Jul 11 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

--
Jared Parsons [MSFT]
ja******@online.microsoft.com
All opinions are my own. All content is provided "AS IS" with no warranties,
and confers no rights.
Jul 11 '06 #2

P: n/a
"BostonNole" <bo********@gmail.comschrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jul 12 '06 #3

P: n/a
That did the trick, thank you very much. I knew it had to be something
simple like that.
Herfried K. Wagner [MVP] wrote:
"BostonNole" <bo********@gmail.comschrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jul 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.