Connecting Tech Pros Worldwide Forums | Help | Site Map

Wrap listview column header

Marco
Guest
 
Posts: n/a
#1: Jul 18 '06
Is there a way to get the text in a column header to wrap to multiple lines?
I'm using vb.net 2003.



Stanimir Stoyanov
Guest
 
Posts: n/a
#2: Jul 18 '06

re: Wrap listview column header


"Marco" wrote:
Quote:
Is there a way to get the text in a column header to wrap to multiple lines?
I'm using vb.net 2003.
Hello Marco,

The common control ListView as defined in Windows itself and implemented in
..NET Framework does not support multi-line column headers. If you still want
to implement this, you can consider coding a control inheriting from
System.Windows.Forms.ListView, or use owner-draw to user paint the column
headers. You could reference
http://www.codeproject.com/cs/miscctrl/customheader.asp for the latter.
--
Best regards,

Stanimir Stoyanov
admin@nospam.stoyanoff.info
Marco
Guest
 
Posts: n/a
#3: Jul 18 '06

re: Wrap listview column header


Thanks. I will take a look at that.

"Stanimir Stoyanov" <admin@nospam.stoyanoff.infowrote in message
news:F646CA65-86EB-48EB-854B-8774D43F69CF@microsoft.com...
Quote:
"Marco" wrote:
>
Quote:
>Is there a way to get the text in a column header to wrap to multiple
>lines?
>I'm using vb.net 2003.
>
Hello Marco,
>
The common control ListView as defined in Windows itself and implemented
in
.NET Framework does not support multi-line column headers. If you still
want
to implement this, you can consider coding a control inheriting from
System.Windows.Forms.ListView, or use owner-draw to user paint the column
headers. You could reference
http://www.codeproject.com/cs/miscctrl/customheader.asp for the latter.
--
Best regards,
>
Stanimir Stoyanov
admin@nospam.stoyanoff.info

Closed Thread


Similar Visual Basic .NET bytes