Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Need a multiline listview Windows Forms control

Need a multiline listview Windows Forms control

Scheduled Pinned Locked Moved C#
winformsquestion
13 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Roman R

    Thanks, but I searched first and then asked for help.

    H Offline
    H Offline
    Heath Stewart
    wrote on last edited by
    #4

    Do you need a ListView or a ListBox? The samples that are available are vastly different, and owner-draw ListBox examples are far more plentiful because they provide managed support for owner drawing, where a ListView requires that you override a hell of a lot of Windows messages and handle many different notification messages.

    -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

    R 1 Reply Last reply
    0
    • R Roman R

      Thanks, but I searched first and then asked for help.

      C Offline
      C Offline
      Carlos H Perez
      wrote on last edited by
      #5

      Obviously you are looking for a free implementation but just in case you don't find it and you need to save time, you can check ours. we have both: MultilineListBox: http://24.199.8.122/MultilineListBox3.aspx[^] MultilineListView: http://24.199.8.122/ListView4.aspx[^] Regards, Carlos.

      N R 2 Replies Last reply
      0
      • C Carlos H Perez

        Obviously you are looking for a free implementation but just in case you don't find it and you need to save time, you can check ours. we have both: MultilineListBox: http://24.199.8.122/MultilineListBox3.aspx[^] MultilineListView: http://24.199.8.122/ListView4.aspx[^] Regards, Carlos.

        N Offline
        N Offline
        Nick Parker
        wrote on last edited by
        #6

        Carlos, just curious if you plan to continue posting your articles here, they are always full of great information and a great learning tool. - Nick Parker
          My Blog

        C 1 Reply Last reply
        0
        • N Nick Parker

          Carlos, just curious if you plan to continue posting your articles here, they are always full of great information and a great learning tool. - Nick Parker
            My Blog

          C Offline
          C Offline
          Carlos H Perez
          wrote on last edited by
          #7

          Hi Nick, I would like to write a series of articles on WinFX --or Avalon, or whatever the name for new technology for writing Windows Application in Longhorn will be. Probably, when Longhorn gets into beta and things get more well defined I will start posting some of my findings here. The new batch of technologies making a debut in Longhorn will surely keep us busy for years to come and I am certainly looking forward to sink my teeth on all the information related with the new UI model. Regards, Carlos.

          1 Reply Last reply
          0
          • H Heath Stewart

            Do you need a ListView or a ListBox? The samples that are available are vastly different, and owner-draw ListBox examples are far more plentiful because they provide managed support for owner drawing, where a ListView requires that you override a hell of a lot of Windows messages and handle many different notification messages.

            -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

            R Offline
            R Offline
            Roman R
            wrote on last edited by
            #8

            I need a ListView control.

            H 1 Reply Last reply
            0
            • R Roman R

              I need a ListView control.

              H Offline
              H Offline
              Heath Stewart
              wrote on last edited by
              #9

              At this time, there isn't many articles on CodeProject about this. There was one, but the guy used CodeProject as a testing front for what he later turned commercial. :( To know what you need to do, research the Windows Common Control ListView. There are messages and notifications that you must be familiar with. After this, you override WndProc in your ListView derivitive class and handle those notification messages. You'll probably also have to P/Invoke several methods (especially SendMessage) and create constants that represent message ID, and several structs. You can try googling for an example, too.

              -----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----

              1 Reply Last reply
              0
              • C Carlos H Perez

                Obviously you are looking for a free implementation but just in case you don't find it and you need to save time, you can check ours. we have both: MultilineListBox: http://24.199.8.122/MultilineListBox3.aspx[^] MultilineListView: http://24.199.8.122/ListView4.aspx[^] Regards, Carlos.

                R Offline
                R Offline
                Roman R
                wrote on last edited by
                #10

                True, I am looking for a free one, but I've saved your link for time when I will develop software for sale. Thanks

                1 Reply Last reply
                0
                • R Roman R

                  Could anyone point me to a multiline (text of an item can be displayed on multiple lines) listview Windows Forms control? Thanks

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #11

                  http://www.codeproject.com/cs/miscctrl/aa_listview.asp[^]

                  R 1 Reply Last reply
                  0
                  • L Lost User

                    http://www.codeproject.com/cs/miscctrl/aa_listview.asp[^]

                    R Offline
                    R Offline
                    Roman R
                    wrote on last edited by
                    #12

                    Thanks. I will check it out. This seems to be what I need. No source code, though. :(

                    L 1 Reply Last reply
                    0
                    • R Roman R

                      Thanks. I will check it out. This seems to be what I need. No source code, though. :(

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #13

                      The source is in the demo project.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups