Re: ListView with Icons



Curious,

You would have to custom draw these items yourself. What I would do is
derive a class from ListView and override the OnPaint method. There, you
would call the base (to paint the control), then figure out the bounds of
the headers and draw your icons in there.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx

"Curious" <theone@xxxxxxxxxxxxxxxxxx> wrote in message
news:1142434849.007839.61340@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have a listview with the View property set as Details. I have set 4
columns, and now I am trying to set some Icons on the column headers.

Is this possible?

Thanks in Advance



.



Relevant Pages

  • ListView with Icons
    ... I have a listview with the View property set as Details. ... and now I am trying to set some Icons on the column headers. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Parse text file into Listview
    ... >> I'm having trouble figuring out how to Parse a text file into a listview ... >> I want to create the column headers and fill the listview based upon the ... > Dim strTmp As String ... > Jim Edgar ...
    (microsoft.public.vb.general.discussion)
  • Re: Alpha icons in listbox
    ... TreeView is similar (but you'll need to respond to different ... Override ListView with your own custom class. ... image converts the icon to a bitmap, losing the alpha in the process. ... > I have an ImageList loaded with 32-bit Alpha Icons. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • New issue in VS2005/.NET 2.0 with visual styles...
    ... Icons which were loaded into the ImageList ... did appear in the ListView. ... When disabling visual styles the icons are shown but some with black ... when I setup an other project from this large solution ...
    (microsoft.public.vsnet.ide)
  • Re: ListView
    ... Ein RedrawItems in Resize löst das Problem, ... Habe eine ListView in einer Form. ... Sprich die Icons sind also da. ... fangen sie dafür an zu flackern. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)