C
Co
Hi All,
I'm trying to override the wndproc to resize the last column of my
listview.
The code however doesn't do anything.
What am I doing wrong?
Public Class LvSort
Inherits System.Windows.Forms.ListView
Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
If m.Msg = WM_PAINT Then
Explorer1.ListView.Columns
(Explorer1.ListView.Columns.Count - 1).Width = -2
End If
End Sub
End Class
Regards
Marco
The Netherlands
I'm trying to override the wndproc to resize the last column of my
listview.
The code however doesn't do anything.
What am I doing wrong?
Public Class LvSort
Inherits System.Windows.Forms.ListView
Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
If m.Msg = WM_PAINT Then
Explorer1.ListView.Columns
(Explorer1.ListView.Columns.Count - 1).Width = -2
End If
End Sub
End Class
Regards
Marco
The Netherlands