title: Display items in a listbox in a messagebox C#
body: <p>I am writing a windows form application that requires me to print the items of a listbox in a messagebox and well . . . here is what I have:</p>
  
  <pre><code>private void btnDisplay_Click(object sender, EventArgs e)
  {
      StringBuilder str = new StringBuilder();
      foreach (object selectedItem in ListBoxCondiments.Items)
      {
          str.AppendLine(ListBoxCondiments.Items.ToString());
      }
      MessageBox.Show("Your made-to-order Burger will include:" + str, "Custom Burger!");
  }
  </code></pre>
  
  <p>And as a result I am receiving a messagebox with string and instead of the items in my list
  I receive System.Windows.Forms.CheckedListBox + . . . (until the end of the list)</p>
  
  <p>thank you for your help!</p>