How do we change the StringTrimming of listview?

  • Thread starter Thread starter Tee
  • Start date Start date
T

Tee

Hi,

I have a listview control that has a column displaying path.
I need to change the StringTrimming of text in this column to
StringTrimming.EllipsisPath, but there is no paint event available for
ListView control, anyone know how can I achieve that?


Thanks,
Tee
 
Have you tried creating a sub that handles the paint event...I thought every
control had a paint event. If this doesn't work for ListView, you can
subclass it and use the "OnPaint" protected method which is called before the
listview is repainted.
 
It does have an OnPaint Method ...at least it's shown in the ListView Class
Members on MSDN. You can subclass the ListView and then handle your work in
an override of the OnPaint Method?
 
Back
Top