| You are here: DEVPPL ‹ Forum ‹ Programming ‹ Visual Basic Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
list box question
2 posts
• Page 1 of 1
0
list box question
Hello everyone, I have a question about list boxes
I want to know how to test the 1st list box if it has items more than the other list box but by one item, here is what i have:
it works good if the lstInvisibleTv list box is greater than the other list box by one but it also works if it is greater the other one by one or more which I do not want. I want it to work just by one
Any suggestions
Thank you guys
I want to know how to test the 1st list box if it has items more than the other list box but by one item, here is what i have:
- Code: Select all
If lstInvisibleTv.Items.Count > lstInvisiblePc.Items.Count Then
it works good if the lstInvisibleTv list box is greater than the other list box by one but it also works if it is greater the other one by one or more which I do not want. I want it to work just by one
Any suggestions
Thank you guys
- Pfm
- Reputation: 0
- Posts: 3
- Joined: Thu Sep 08, 2011 2:17 pm
- Highscores: 0
- Arcade winning challenges: 0
0
Re: list box question
Very easy. Here is the code:
- Code: Select all
If lstInvisibleTv.Items.Count = lstInvisiblePc.Items.Count + 1 Then
- Sanjon
- Reputation: 0
- Posts: 40
- Joined: Sun Dec 05, 2010 7:20 pm
- Highscores: 0
- Arcade winning challenges: 0
|
|