Results 1 to 5 of 5

Thread: Listview columns: how to?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    Palermo, Italy
    Posts
    325

    Listview columns: how to?

    How to show the headers of the columns, but not allow to resize?
    I need because I load in a listview a dataset with the primary key placed in a column, and I don't want this to appear...

    Thx,
    Xmas
    Learn, this is the Keyword...

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    You should override WndProc of listview.
    look here for details:
    http://groups.google.com/groups?hl=e...tnet%2BWndProc
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    Palermo, Italy
    Posts
    325
    Wow! Thanks! It took me a bit to understand how to make it working, but at least
    Learn, this is the Keyword...

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Lunatic3
    You should override WndProc of listview.
    look here for details:
    http://groups.google.com/groups?hl=e...tnet%2BWndProc
    some ages ago I nearly killed myself to figure out when a listview column is resized, and I never found the answer. AAAh I wish someone had posted this earlier.... still useful, thanks for the post
    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!!

  5. #5
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Your most welcome

    Your thanks should go to Google
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

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