Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用以 vb 作为我的语言的 Visual Studio 2008。我有一个数据绑定的多扩展列表框。我需要为每个选定的项目获取选定的值。我已经搜索了两个星期试图找到并回答。任何人都可以帮忙吗?我将不胜感激。
首先将数据绑定到列表框的方式有问题,或者您需要先对项目进行“DirectCast”,然后才能看到它的内容。
这个怎么样:
For Each Item In ListBox1.SelectedItems //Do Stuff here to the item Next