Results 1 to 6 of 6

Thread: [2005] Multicolumn CheckedListbox with Vertical Scrolling

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    [2005] Multicolumn CheckedListbox with Vertical Scrolling

    I have a multicolumn checkedlistbox. Is there a way to limit the number of columns and force a vertical scroll?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Multicolumn CheckedListbox with Vertical Scrolling

    This is from the MSDN docuemntation for the CheckedListBox.Multicolumn property:
    A multicolumn ListBox places items into as many columns as are needed to make vertical scrolling unnecessary.
    I think that pretty much answers the question.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    Wink Re: [2005] Multicolumn CheckedListbox with Vertical Scrolling

    Quote Originally Posted by jmcilhinney
    This is from the MSDN docuemntation for the CheckedListBox.Multicolumn property:I think that pretty much answers the question.

    That much I already knew. Just because MSDN (Microsoft) has its perspective on an issue doesnt mean it is beneficial.


    When users look at a screen it is much more appealing visually to see vertical scrolling of long lists than horizontal scrolling. But with the listbox you either have to have one single super long vertical scroll column or horizontal scrolling.


    It would be nice if I could specify the number of columns wide and then have it vertically scroll my longer columns.

    I know you could probably implement this with a listview, with a little bit of a hassle but its a checked listbox - I dont think there is a checked listview.

    This should be a common simple thing but I'm sure it will be in Visual Studio 2010 and thus another reason to upgrade.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Multicolumn CheckedListbox with Vertical Scrolling

    The ListView has a CheckBoxes property to display check boxes in Details view.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    Re: [2005] Multicolumn CheckedListbox with Vertical Scrolling

    Quote Originally Posted by jmcilhinney
    The ListView has a CheckBoxes property to display check boxes in Details view.
    Its somewhat different. I believe the checkboxes on a listview are per row where as in a listbox it is per item which is what I need.

    So the listview checkboxes wouldnt work.

    I hate to tell my client the functionality is not there but if it is such a pain in the neck to get vertical scrolling working on a multicolumn listbox I'll try to convince him to live with horizontal.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Multicolumn CheckedListbox with Vertical Scrolling

    The control is simply not designed to work that way.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width