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.
 

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