c# - Regex.Split create new line -


basically trying create new line in list box when data imported or added. example address need new line

2 example road example  

at moment showing item in 1 line rather 3 lines.

private void txtphrase_selectedindexchanged(object sender, eventargs e) {     foreach (string s in regex.split("", "\r\n"))         txtphrase.items.add(s); } 

unsure on put string input? there different inputs.

the listbox not support functionality split single list item on multiple lines. may want consider using seperate items or different control on form.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

c# - Attempting to upload to FTP: System.Net.WebException: System error -