c# - Why do I only see the last value from a List in my RichTextBox? -


Why is this code only outputing an element from the list?

  Private Zero Button 3_Click (Object Sender, EventAgages E) {Task dozontitis = New DOSOMING (); Dosomething.calculate (); Fortate (float number dozzo. Display ()) {richTextBox1.Text = num.ToString (); }}  

Where dosomething.Display () return a list

richTextBox1.Text = = num.ToString ();

What you are doing, only the very last item will be displayed.

There will be a better way to use stringbuilder

  stringbilder sb = new stringbilder (); Forbidden (Float number dojoeming display). {Sb.Append (num.ToString () + Environment.NewLine); } RichTextBox1.Text = sb.ToString ();  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -