Click to See Complete Forum and Search --> : ListView with checkboxes as SubItems
demmith
March 13th, 2001, 03:47 PM
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.
Johnny101
March 14th, 2001, 09:25 AM
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
demmith
March 14th, 2001, 10:22 AM
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
vbgrammer
April 16th, 2001, 03:09 PM
Declined
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.