Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i cant find out how it get this to work

What I have tried:

if (listBox1.Items.Count == < numaantpers.Value)
{
messagebox.show("you didnt add enough items")
}
Posted
Updated 2-Jan-18 3:08am

1 solution

== < is not an operator. You are probably looking for < (less than) or <= (less than or equal).
 
Share this answer
 
Comments
Member 13554627 2-Jan-18 9:11am    
ah ofcourse i see, thanks!
Thomas Daniels 2-Jan-18 9:12am    
You're welcome!

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