listbox - cannot convert from 'string[]' to 'System.Windows.Forms.ListViewItem.ListViewSubItem -
welcome have problem.i need listbox.
problem is: cannot convert 'string[]
' 'system.windows.forms.listviewitem.listviewsubitem
'
my code this:
string[] itemss = regex.split(textbox1.text, "\r\n") ; // string[] arrteammembers = new string[] { tb.text }; // listviewitem<string> newlist = new listviewitem<string>(); listviewitem newlist = new listviewitem("1"); newlist.subitems.add(itemss); newlist.subitems.add("3"); newlist.subitems.add("4"); newlist.subitems.add("5"); newlist.subitems.add("6"); listcontacts.items.add(newlist);
Comments
Post a Comment