Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27159

Set limit to items in listbox

$
0
0
I am making a program which uses list boxes. There is a list of items in listbox1 and the user has to choose some and put it in listbox2. So is there anyway to set a limit to the maximum items that the user can put in listbox2 is 5 and if they try to choose more than 5 than an error message will pop up. I want it continuously looping the code.
PLEASE help me i am new to VB.

Viewing all articles
Browse latest Browse all 27159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>