Results 1 to 3 of 3

Thread: Multiline ListView

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Multiline ListView

    I've posted this topic before but I couldn't find the answer I was looking for. I was wondering if there's a way to make a multiline ListView by using some sort of code to merge two ListView rows? Or if there's any other ways, I'd like to hear about it. I don't like using third-party controls unless I made it
    Thanks

  2. #2
    Lively Member se7en's Avatar
    Join Date
    Dec 2006
    Location
    Manchester, UK
    Posts
    118

    Re: Multiline ListView

    for starters i input the column headers in hardcode rather than properties. then ya just use sub items. say im using 2 colums and x amount of rows. this is how i would input data from textboxes into the row fields...

    Code:
    private sub command1_click()
    Dim Header As ColumnHeader, Item As ListItem
        Set Header = ListView1.ColumnHeaders.Add(, , "column1", 600)
        Set Header = ListView1.ColumnHeaders.Add(, , "column2", 600)
                Set Item = ListView1.ListItems.Add(,,,,)
                    Item.SubItems(1) = text1.text
                    Item.SubItems(2) = text2.text
    end sub

    Did a reply help answer your questions? Please RATE good posts!
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    New Laptop System: Intel Dual-Core T2060 2.0GHz • 533MHz FSB • 2MB Cache • 1024MB RAM • 120GB Hard Drive • Dual Layer DVD ReWriter MultiDrive • 15.4" Widescreen Display • Microsoft Windows Vista Ultimate • 128MB Intel GMA 900 UMA Graphics

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    400

    Re: Multiline ListView

    I can't seem to get the code to work.

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