计算列表框中的选定项目 [英] counting selected items in a list box

查看:70
本文介绍了计算列表框中的选定项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何计算所选列表框中而不是列表框中的所有值的数量?

How do you count the amount of values in a list box that are selected, rather than all of those within the list box?

我需要获取数字,然后将其设为字符串.一旦有了数字,我就可以轻松地将其更改为字符串

I need to get the number and then make it a string. Once i have the number i can change this easily to a string

谢谢

推荐答案

我已经使用ListBox1.GetSelectedIndices.Length

I have done this using ListBox1.GetSelectedIndices.Length

这篇关于计算列表框中的选定项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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