I got two q.
1. How do you change to Icon in a ListView HeaderColumn in run-time?
2. How do you prevent the users of changing the width of a ListView Coloumn?
Printable View
I got two q.
1. How do you change to Icon in a ListView HeaderColumn in run-time?
2. How do you prevent the users of changing the width of a ListView Coloumn?
In response to your first question:
As for the second one, I don't know. Anyone?Code:listview1.ColumnHeaders(1).Icon=2
For the second q, there's no option for that in the control so you have to subclass for the listview for WM_NCMBUTTONDOWN message and then using getcursorpos and clienttowindow api to know if the cursor is over the columns