title: How do i check if the url i enter in the textBox is appears in the List?
body: <p>I have a List type of dictionary> called LocalyKeyWords.
  And i have a new form where there is a textBox where i can type a new url address its called     cl.getText().</p>
  
  <p>When i click the button its showing a new form with only a textBox.</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
          {
              cl = new ChangeLink();
              cl.StartPosition = FormStartPosition.CenterParent;
              DialogResult dr = cl.ShowDialog(this);
              if (dr == DialogResult.Cancel)
              {
                  cl.Close();
              }
              else if (dr == DialogResult.OK)
              {    
                      label4.Text = cl.getText();
                      mainUrl = cl.getText();
                      for (int i = 0; i &lt; LocalyKeyWords.Count(); i++ )
                      {
                          if (LocalyKeyWords[i].Contains(cl.getText()))
                          {
  
                          }
                      }
                      OptionsDB.set_changeWebSite(cl.getText());
                      cl.Close();
              } 
  
  
          }
  </code></pre>
  
  <p>I want to check if the url the user enter in the cl.getText() already exist in the LocalyKeyWords List so i tried this:</p>
  
  <pre><code>for (int i = 0; i &lt; LocalyKeyWords.Count(); i++ )
                      {
                          if (LocalyKeyWords[i].Contains(cl.getText()))
                          {
  
                          }
                      }
  </code></pre>
  
  <p>But its not working. 
  I want to loop through all the items in List and in the end if the cl.getText() not exist in any of the items in the List do something.</p>
  
  <p>How can i do it ?</p>