title: pass item shown textbox to listbox
body: <p>I am currently learning on Webcam based qr code decoder. I would like to request advice on passing the decoded code which is shown in a textbox to be listed out in a listbox. So, I could see the list of item which has been decoded. here is the <a href="https://zxingnet.svn.codeplex.com/svn/trunk/Clients/AForgeDemo/AForgeDemoForm.cs" rel="nofollow">code</a> which I am currently trying to rebuild.</p>
  
  <p>Here is the code which shows the decoded qr code </p>
  
  <pre><code>private void ShowResult(Result result)
  {
     currentResult = result;
     txtBarcodeFormat.Text = result.BarcodeFormat.ToString();
     txtContent.Text = result.Text;
  }
  </code></pre>
  
  <p>And I added a listbox to the program to show the list of decoded code. This is an <a href="http://www.codeproject.com/Questions/447963/passing-textbox-values-to-listbox" rel="nofollow">example I saw</a></p>
  
  <pre><code>void fill_listbox()
  {
  
      string[] values = result.Text;
  
      foreach (string value in values)
      {
          if (value.Trim() == "")
              continue;
           listBox1.Items.Add(value.Trim());
      }
  }
  </code></pre>
  
  <p>Any advice on what should I input to replace "= result.Text;"? </p>