Results 1 to 6 of 6

Thread: << Still looking desperate >> Any events for listview's column size change?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    << Still looking desperate >> Any events for listview's column size change?

    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?
    Last edited by MrPolite; Jul 5th, 2002 at 12:37 AM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    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

    sounds like a very yummy one, but I dont think I can use that in VB.NET
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    hellswraith
    Guest
    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.

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    umm looks very hard

  6. #6

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    someone in gotdotnet forums said this... doesnt always work though:
    VB Code:
    1. Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
    2.         If m.Msg = 78 And m.LParam.ToInt32 = 1242688 Then
    3.             MessageBox.Show("ListView resized, do something")
    4.         End If
    5.         MyBase.WndProc(m)
    6. End Sub

    anyone can help me with this? LParam is 1242452 on my comp
    is it even a good way to do this?
    how else can this be done?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width