Link Labels c# - displaying a list of them
Posted
by
tom
on Stack Overflow
See other posts from Stack Overflow
or by tom
Published on 2011-01-17T10:37:28Z
Indexed on
2011/01/17
10:53 UTC
Read the original article
Hit count: 237
I am trying to add a list of linked lables to a listview. I amd doing so like this
foreach (String s in values)
{
LinkLabel label = new LinkLabel();
label.Text = s;
txtBox.Controls.Add(label);
}
}
It keeps adding just one item to the listbox even tho there are more. Any ideas?
ps) i can tell there are more items from adding a breakbpoint and using console.writeline when iterating
Thanks
© Stack Overflow or respective owner