如何传递给我的listview检查项目的字符串 [英] How to pass to string my checked items of listview

查看:68
本文介绍了如何传递给我的listview检查项目的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我...
事情是这样的...

我想将listview中所有已检查项目传递给字符串,以便我可以保存它...只要listview中检查了多少项目,就可以多次保存.

请帮帮我....

....

Please help me...
The thing goes like this......

I want to pass to strings all my checked items in my listview so that I can save it... multiple times as long as how many items are checked in the listview.

Please help me....

Any help would always be appreciated.....

推荐答案

要获取每个选中的项目文本,请执行以下操作;

To get each checked items text do the following;

For Each checkedItem As ListViewItem In ListView1.CheckedItems
    Debug.WriteLine(checkedItem.Text)
Next


这篇关于如何传递给我的listview检查项目的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆