For instance in a "For" loop:

for(int i = 0;i<=listBox1.

What could I place after the "." at the end to check so it doesn't keep on working after the number of items?

try something like this:

for (int i = 0; i < listBox1.Items.Count; i++)

make sure it's i < and not i <= since you are starting with index 0.

Good luck

commented: Gave me clear, concise help. +1

Cool, thank you for your tip. I'll try it out later tonight. :)

Read the intellisense of the property, it will help you. I think you did not do some efforts... hehehehe no offense meant, that's for your own good. if problem persist consult your f***n brilliant mind, I know you have lots of guts!!!

regards.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.