Results 1 to 4 of 4

Thread: Restricting Column Resizing in a ListView

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Restricting Column Resizing in a ListView

    I have headers on my ListView, and don't want the user to be able to resize them. I've gone through every property I know of that seems like it could have anything to do with this and I can't find a way to lock the size of the columns.. anyone know of a way? If not, I can always hide the columns and build my own headers, I just don't want to unless I have to.
    Like Archer? Check out some Sterling Archer quotes.

  2. #2
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Restricting Column Resizing in a ListView

    if i am not mistaken, the listview doesnt have a resize event so you cant use that but it might be that you might have to subclass the listview maybe?

    i dont know if this will work but you might be able to use the mousemove event to check to see if the mouse is moving when the column header is increasing/decreasing and if this is happening, then to revert to the original width that you would also have to specify.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Restricting Column Resizing in a ListView

    that's what I thought. It's not worth the trouble to bother doing that, though, so I'm just going to make my own header.
    Like Archer? Check out some Sterling Archer quotes.

  4. #4
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729
    Last edited by iPrank; Sep 29th, 2006 at 10:40 PM.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


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