Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I want to add all values of listobox. I do not want items count.

Thank you.
Posted
Updated 26-Oct-10 20:56pm
v2
Comments
JF2015 27-Oct-10 2:38am    
Your spelling is so bad, I can't even understand what you really want

1 solution

Try:
C#
string currItemValue = string.Empty;
for(int i=0;i < myList.Items.Count ; i++)
{
   currItemValue = myList.Items[i].Value;
   // Do whatever you need to do with the current item value. 
}
 
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