listbox

How to add multiline Text to a ListBox item?

断了今生、忘了曾经 提交于 2021-01-15 07:50:12
问题 I have a little problem and can't find a solution. I would like to put a text at the end of a ListBox item and I have no idea how... TagLib.File f = TagLib.File.Create(paths[i]); listBox1.Items.Add("0" + i + ". " + f.Tag.Title +"\n" + string.Join(", ", f.Tag.Performers) + " - " + "\r" + f.Tag.Album + " " + f.Properties.Duration.TotalMinutes.ToString()); I've already tried it but unfortunately it doesn't work that way. Maybe someone knows how you can always put the text at the end, with a code

How to add multiline Text to a ListBox item?

天大地大妈咪最大 提交于 2021-01-15 07:50:10
问题 I have a little problem and can't find a solution. I would like to put a text at the end of a ListBox item and I have no idea how... TagLib.File f = TagLib.File.Create(paths[i]); listBox1.Items.Add("0" + i + ". " + f.Tag.Title +"\n" + string.Join(", ", f.Tag.Performers) + " - " + "\r" + f.Tag.Album + " " + f.Properties.Duration.TotalMinutes.ToString()); I've already tried it but unfortunately it doesn't work that way. Maybe someone knows how you can always put the text at the end, with a code