Get ListView cell's handle?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to get the Handle property for a particular cell in a
ListView? I'm wanting to turn a cell into a progress bar rather than just
displaying text. If it's possible to get the Handle I can just do
Graphics.FromHwnd(listView1.Handle); and then use FillRectangle to display
the progress bar.

Any ideas?

Darrell
 
Hi Darell,

There is no notion of a cell as an independent window having an HWND in
ListView, at least in the report/detail mode. If you need to implement
custom drawing, you will have to do just what the name implies - namely tap
into ListView's custom drawing framework to provide custom appearance for a
sub-item.

I remember there is a detailed article on CodeProject discussing how to
implement ListView custom drawing in .NET.
 
Back
Top