What I'm looking to do is take a string of of text with linebreaks in it, and display it in a text box. For size reasons (long strings) I would like it to word wrap as nomal, based on the length of the control, and not based on the linebreak location. However for editing (and parsing) reasons, I would like the linebreaks to remain.
Now this is all fine and good, and easy to do... If you don't mind the not-printable character (little square) showing up, left, right and center.
What I would like to do is display the linebreak as as a good old fassion space. Now I know I could string.Replace(inputText, "\n", "");
But again once editing is done, I would like the linebreaks to still be in the string.
I don't know that there is any reasonabley easy way to do this (and have a feeling there isn't). But I thought I'd pick the brains of you bright folks any way.
I had deleted the folder after installing the update and then re-created the inetpub folder. Ran the script today even though the folder exists, it does some minor changes to the permissions and to the order of some.
Mmmmmaybe... I'm undecided. I sort of appreciate the fact that it's at least different. Unless you buy an exotic car, you're going to be purchasing something that looks 1% different from what everything looked like last year. I don't have anything nice to say about Elon Musk, but I do wish more companies would at least try something new. There's a historical pattern of punishing any vehicle that doesn't look like everything else.
I was pretty iffy going in, but actually watching the keynote and seeing the UI on MacOS I think it's looking much better than most of the concept art that was floating around the internet, and overall I agree with the comments here Vista/7 was the nicest looking windows OSs and apple seems to be going in a good direction here. I look forward to the Widgets that can be styled to fit your personal tastes. A couple of their quick shots showed quite a bit of color customization for the general OS too, which reminded me a lot of old windows and Mac OSs.
Question
KXM
OK this is kind of an odd one.
What I'm looking to do is take a string of of text with linebreaks in it, and display it in a text box. For size reasons (long strings) I would like it to word wrap as nomal, based on the length of the control, and not based on the linebreak location. However for editing (and parsing) reasons, I would like the linebreaks to remain.
Now this is all fine and good, and easy to do... If you don't mind the not-printable character (little square) showing up, left, right and center.
What I would like to do is display the linebreak as as a good old fassion space. Now I know I could string.Replace(inputText, "\n", "");
But again once editing is done, I would like the linebreaks to still be in the string.
I don't know that there is any reasonabley easy way to do this (and have a feeling there isn't). But I thought I'd pick the brains of you bright folks any way.
TIA!!!
Link to comment
https://www.neowin.net/forum/topic/458032-c-display-non-printable-characters-as-spaces/Share on other sites
3 answers to this question
Recommended Posts