What im trying to do is when someone checks a certain amount of items say like 6 then they try and select 7 it removes the 7th then a label says "Too many selections" and ive bin searching for like a day now and couldnt find anything and any help would be greatly appreciated
PysKo
0
Newbie Poster
Recommended Answers
Jump to PostThere is no limitation to the amount of items you can select in a checkedlistbox. This sounds more like something in your code that is causing this.
Jump to PostHere lemme explain this better
Say i have 1 checked list box but i want to limit how many options people can click to 6 but when they hit 7 a label appears and say "To many options selected" but then gets rid of the 7th option they clicked
LOL, …
Jump to PostMy coding was in the CheckListBox's ItemCheck event, e is the event parameter that is automatically present if you are in the right control event. I truncated the control event parameters to save text but will show the whole line since it confused you.
Private Sub CheckedListBox1_ItemCheck(ByVal sender As …
All 12 Replies
TomW
73
Posting Whiz
PysKo
0
Newbie Poster
TomW
73
Posting Whiz
PysKo
0
Newbie Poster
TomW
73
Posting Whiz
PysKo
0
Newbie Poster
TomW
73
Posting Whiz
PysKo
0
Newbie Poster
TomW
73
Posting Whiz
PysKo
0
Newbie Poster
PysKo
0
Newbie Poster
TomW
73
Posting Whiz
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.