✅ Array wont fully print out Windows Forms App
Hiya new to WDF trying to output a full aray ive looped through. Though it only displays the last string in the array "King spades" Wondering why this happens
10 Replies
What's WDF?
And it displays only the last element, because... you tell it to
i didnt mean wdf mb
You're replacing the text of
textBox1
with each iterationhow would i make it so it displays the whole array?
You could append to that textbox
Or use
string.Join()
and join the whole array into a string
Or serialize it to JSON string
Many wayswhat do you mean by append the textbox?
Instead of replacing the text with every iteration
Append to that text with every iteration
oh i see what would i need to change to do that im unsure thanks
+=
might helpcheers