Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,i have a text in my textbox,now how can i add a , at the end of a each line with the button click?
Posted

1 solution

Something like (in the button handler):

textBox1.Text = textBox1.Text.Replace("\r\n", ",\r\n");
 
Share this answer
 
Comments
RaviRanjanKr 2-Sep-11 14:14pm    
Nice Answer, My 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900