Click here to Skip to main content
15,923,789 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have 2 list boxes and when i click on moveleft button then the value swap to the other listbox . But i want that only 5 value swap to other and after that it show an error. How can i do that
Posted
Comments
I.explore.code 20-Oct-11 6:35am    
Please don't post all the code without a single bit of explanation of the problem, you seriously can't expect people here to read all that code and try to suggest you a solution. You need to tell, what you want to do? what have you done so far yourself to fix the problem? whats the error if any and when the error comes up? That way you can get solutions far quickly and accurately.

Cheers...

1 solution

Count the number of moves you make, and disable the button or raise an error when it meets or exceeds that value.
Or count the number of item in the new list box and do the same, whichever is most applicable to your application.

More details we can't give - we cannot see your code from here...

[edit]Typo - OriginalGriff[/edit]
 
Share this answer
 
v2

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