title: Invoking Listbox in threads
body: <p>I am trying to have my listbox clear it self at the end of my thread. I am having issues invoking it and was hoping someone would show me how.</p>
  
  <pre><code> public delegate void ClearDelegate(ListBox lb);
  
  
          public void ItemClear(ListBox lb)
          {
              if (lb.InvokeRequired)
              {
                  lb.Invoke(new ClearDelegate(ItemClear), new Object[] { lb });
              }
  
              listBox1.Items.Clear();
  
          }
  </code></pre>