I am trying to display a listbox(list of Column Names selected from a table in database)into a textbox displaying like a CSV file format.
Please be notice that I do not want to create a CSV file, as I said I just like to pass items from listbox into a Textbox in a comma seperated format.
lets say I have a listbox populated like:
for(int i = 0; i<listBox1.Items.Count; i++)
if((i +1) < listBox1.Items.Count)
textBox1.Text += listBox1.Items[i] + ", ";
textBox1.Text += listBox1.Items[i];
Thanks again and appreciate for your time