Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hello,

I want count all value of a listbox

thank you.
Posted
Updated 25-Oct-10 21:54pm
v2

Label1.Text =Convert.ToString( ListBox1.Items.Count);

use it
 
Share this answer
 
v2
how many times you will ask this question,,
don't spam the board. stick on one.,
 
Share this answer
 
Comments
Dalek Dave 26-Oct-10 3:53am    
Well Said.
The Listbox.Items.Count property gives the count of the items in the listbox.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900