// your case delimiter will be ',' char[] delimiterChars = { ',' }; string text = txtbox1.Text;// txtbox1 is treated your textbox string[] splitedStr = text.Split(delimiterChars); foreach (string str in splitedStr ) { lstbox1.Items.Add(str.ToString(),str.ToString()); //lstbox1 as your listbox }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)