I need to know if the user has changed the size of a column of a listview, sounds like there is not an event for it. any way to do this?:confused: :confused: :confused: :confused:
I need to know if the user has changed the size of a column of a listview, sounds like there is not an event for it. any way to do this?:confused: :confused: :confused: :confused:
Well...I'm not up on .NET yet, but here's how you would do it in VB6.
http://209.120.143.185/showthread.ph...istview+header
:)
sounds like a very yummy one, but I dont think I can use that in VB.NET :pQuote:
Originally posted by crptcblade
Well...I'm not up on .NET yet, but here's how you would do it in VB6.
http://209.120.143.185/showthread.ph...istview+header
:)
This sounds like the perfect project to learn how to create custom controls that inherit another control....:)
Seriously though, why don't you create your own custom control based off of the listview control. Probably in the OnPaint method (if there is one??) you will want to look to see if the columns have changed size, if so, raise your new event...
I wrote my own control based off of the panel control, and added a custom event to it, it wasn't that bad at all. The only problem I had was learning how delegates work, but maybe VB will shield you from those.
umm looks very hard:(
someone in gotdotnet forums said this... doesnt always work though:
VB Code:
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m.Msg = 78 And m.LParam.ToInt32 = 1242688 Then MessageBox.Show("ListView resized, do something") End If MyBase.WndProc(m) End Sub
anyone can help me with this? LParam is 1242452 on my comp:confused:
is it even a good way to do this?
how else can this be done?