You are here: DEVPPL Forum Programming Visual Basic Forum
NOTIFICATIONS
54.125
MEMBERS
15.697
TOPICS
62.285
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

list box question

0

Loading

list box question

Postby Pfm » Fri Oct 21, 2011 7:35 pm

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:

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

list box question - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: list box question

Postby Sanjon » Fri Oct 21, 2011 8:13 pm

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
^ Back to Top