Listview column headers

  • Thread starter Thread starter JL
  • Start date Start date
J

JL

Is it possible and if so, how, to change the color (and/or font) of a
listveiw's column headers at runtime and individually?

TIA,
John
 
No, the ColumnHeader class of the .NET Framework lacks those properties, so
you would need to use custom drawing and the Win32 API. Notice that there is
a Column Header control on its own that the listview uses internally, and
that you can get its window handle sending the LVM_GETHEADER message to the
listview:

http://msdn.microsoft.com/library/d...s/shellcc/platform/commctls/header/header.asp

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Thank you Carlos and Herfried. I was afraid it was not possible. Seems
very short sited of MS to leave out those important properties. But,
oh well...

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top