title: Can you add a new line to a list box?
body: <p>I have 3 text boxes which then needs to be passed to a 1 line on a list box when you click add.</p>
  
  <p><a href="http://i.stack.imgur.com/97CKW.png" rel="nofollow">http://i.stack.imgur.com/97CKW.png</a></p>
  
  <p>But when I click add on a list box it will show the information on a new line every time.</p>
  
  <p>I have tried this with a richtextbox, but it is not working as well.I have also done some research and found out that it is possible on a listbox but you need to add something to my code.</p>
  
  <p>My code so far:</p>
  
  <pre><code>private void btnAdd_Click(object sender, EventArgs e)
  {
      decimal iQuantity;
      decimal iPrice;
      decimal Fullprice = 0;
  
      string Product = cmbItem.Text;
      string Quantity = txtQuantity.Text;
      string Price = txtPrice.Text;
  
      decimal.TryParse(Quantity, out iQuantity);
      decimal.TryParse(Price, out iPrice);
  
      if (iQuantity &lt;= 0)
      {
          MessageBox.Show("Please enter Quantity larger than 0", "Quantity", MessageBoxButtons.OK, MessageBoxIcon.Error);
      }
      else if (iPrice &lt;= 0)
      {
          MessageBox.Show("Please enter a valid price above 0", "Price", MessageBoxButtons.OK, MessageBoxIcon.Error);
      }
      else
      {
          Fullprice = iPrice * iQuantity;
          rtbBasket.AppendText(string.Format("{0} {1} £{2} £{3}",Product,iQuantity,iPrice,Fullprice + Environment.NewLine));
      }
  }
  </code></pre>