title: c# filter listbox with textbox
body: <p>I need a way to filter variable name of a list, I want to update the filter as fast as i write in the textbox. and add the game to forms Listbox.</p>
  
  <p>structure of list is:</p>
  
  <pre><code>public class Games
  {
      public string ID;
      public string Name;
      public string Password;
  }
  </code></pre>
  
  <p>here's my code so far:</p>
  
  <pre><code>    List&lt;Games&gt; games = new List&lt;Games&gt;();
      private void textBox10_TextChanged(object sender, EventArgs e)
      {
          d2ngList.Items.Clear();
          foreach(Games game in games)
          {
              //Filter List
              d2ngList.Items.Add(game.Name);
          }
      }
  </code></pre>