Peter Kiers
asked on
Get all the strings of a stringlist in a textbox.
Hi, I have this code below to display all the string of a stringlist in a textbox.
But even thou there are more strings in the stringlist I only get one string
displayed in the textbox. What do I do wrong?
Greetings, Peter Kiers
But even thou there are more strings in the stringlist I only get one string
displayed in the textbox. What do I do wrong?
private List<string> opened = new List<string>();
private void button1_click(object sender, EventArgs e)
{
foreach (string mylist in opened)
{
testking.Text=mylist;
}
}
Greetings, Peter Kiers
ASKER
Hi, thank you for the response. I get: Cannot implicitly convert 'type' to 'bool' at the IF-line
P
P
ASKER
Oh got it must be ==
Peter
Peter
ASKER
Is it possible to display the strings underneath each other then next to each other.
Peter
Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. Peter
try something like:
Open in new window