Need a multiline listview Windows Forms control
-
Could anyone point me to a multiline (text of an item can be displayed on multiple lines) listview Windows Forms control? Thanks
Trying searching[^] first. There's a ton of examples of this on CP alone, besides what the link above provides. It's just an owner-drawn
ListView
which is trivial to do. You could also google for it.-----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-----
-
Trying searching[^] first. There's a ton of examples of this on CP alone, besides what the link above provides. It's just an owner-drawn
ListView
which is trivial to do. You could also google for it.-----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-----
-
Do you need a
ListView
or aListBox
? The samples that are available are vastly different, and owner-drawListBox
examples are far more plentiful because they provide managed support for owner drawing, where aListView
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-----
-
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.
-
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.
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 -
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 BlogHi 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.
-
Do you need a
ListView
or aListBox
? The samples that are available are vastly different, and owner-drawListBox
examples are far more plentiful because they provide managed support for owner drawing, where aListView
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-----
-
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 yourListView
derivitive class and handle those notification messages. You'll probably also have to P/Invoke several methods (especiallySendMessage
) 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-----
-
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.
-
Could anyone point me to a multiline (text of an item can be displayed on multiple lines) listview Windows Forms control? Thanks