Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1.  
  2.             for (int i = 0; i < listetabcontrol.Count; i++)
  3.             {
  4.                 for (int j=0; j<listeDroit.Count();j++)
  5.                
  6.                     if (listetabcontrol[i].ToString().Trim() == listeDroit[j].Droit.Trim())
  7.                     {
  8.                         listBox1.Items.Add("Sa fonctionne" + listetabcontrol[i].ToString());
  9.                        
  10.                      
  11.                     }
  12.                     else
  13.                     {
  14.                        
  15.                         tabControl.TabPages.RemoveByKey(listetabcontrol[i].ToString().Trim());
  16.                     }
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement