Friday, January 25, 2013

How to add breaklines to a string in C#

Problem: I'm working on a website that is generating a contiguous block of text for a reg key. This is then copy and pasted into the client software. The problem is the client software textbox doesn't really wrap text. My solution is to insert newlines into the block of text at a specified length so that when it's copy and pasted it does so with the newlines and doesn't look like crap.

No comments:

Post a Comment

There was an error in this gadget