如何计算列表框的所有值 [英] how to count all value of listbox
本文介绍了如何计算列表框的所有值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我想计算一个列表框的所有值
谢谢.
Hello,
I want count all value of a listbox
thank you.
推荐答案
Label1.Text = Convert.ToString(ListBox1.Items.Count);
使用它
Label1.Text =Convert.ToString( ListBox1.Items.Count);
use it
您会问这个问题多少次,
不要向董事会发送垃圾邮件.
how many times you will ask this question,,
don''t spam the board. stick on one.,
Listbox.Items.Count
属性给出列表框中物品的数量.
:)
TheListbox.Items.Count
property gives the count of the items in the listbox.
:)
这篇关于如何计算列表框的所有值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文