简体   繁体   中英

Which items are checkMarked in my CheckListBox (from the top of the list)?

In VB.NET, I can easily use CheckedItems to see that 3 elements are checkMarked in my CheckListBox. I loop through 0,1,2 and correctly get the text on each line that is checkMarked. (With only a small/quick loop of 0-2)

But how can I determine those 3 elements are on lines 14,222,1255? (Without looping through 1000s of items.)

Thanks

Use CheckedIndices instead. They'll give you directly line numbers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM