CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 1999
    Location
    Northern Virginia
    Posts
    124

    ListView with checkboxes as SubItems

    I have scoured the Internet and MSDN, maybe I'm blind, but I can't find anything that tells me how to make checkboxes in my ListView subitems. I know that you can have a checkbox beside the item but that is not what I am looking for. I need checkboxes as subitem data. How can I make that happen?

    Thanks.


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: ListView with checkboxes as SubItems

    You could probably cheat and place a "checkbox" bitmap/icon in the subitem. it would look like a checkbox and the user clicked it you could change it to another icon, a checked checkbox.

    i know that other people in my company have done this, but i haven't seen the code (yet).

    just a thought,

    john

    John Pirkey
    MCSD
    http://www.ShallowWaterSystems.com
    http://www.stlvbug.org
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Oct 1999
    Location
    Northern Virginia
    Posts
    124

    Re: ListView with checkboxes as SubItems

    Thanks John -- I've come to the same conclusion. I found a checkmark icon and the white 'X' with red background circle icon in one of my Visual Studio subfolders so that's what I'm going to do. I have Chris Eastwood's VB Code Library that shows you how to put icons in SubItem columns and that seems to be working good so far. Still have more to do but its getting there. Thanks. - Dave


  4. #4
    Join Date
    Apr 2001
    Posts
    4

    Re: ListView with checkboxes as SubItems

    Declined
    Last edited by vbgrammer; May 16th, 2002 at 11:55 AM.

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

Featured