Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
1.25/5 (3 votes)
See more:
Hello,

I want to how to count all items(number) of listbox please give me code.

thankyou.
Posted
Updated 25-Oct-10 21:48pm
v2
Comments
Dalek Dave 26-Oct-10 3:48am    
Minor Edit for Grammar and Spelling.
Sandeep Mewara 26-Oct-10 6:29am    
Repost... actually the other one!

1 solution

is this you are searching for....

listBox1.Items.Count 
 
Share this answer
 
Comments
Dalek Dave 26-Oct-10 3:49am    
Sometimes they are too easy :)

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