ASCII ENTER symbol in text box
-
Hi, My text (notepad) cotains few ascii characters; one of which is ENTER symbol (like a square box). I want the text as it is, while I paste it to a textbox. (Access it through Textbox.Text property in code) -- Asp.net/ vb.net Instead, (i) when I pasted in a textbox with text mode as single line, the portion of the text before the enter symbol alone pasted. (ii) when I pasted it in the with text mode as multiline, then it is pasted as two lines. Is there any way to get the same text in textbox?
Jey
-
Hi, My text (notepad) cotains few ascii characters; one of which is ENTER symbol (like a square box). I want the text as it is, while I paste it to a textbox. (Access it through Textbox.Text property in code) -- Asp.net/ vb.net Instead, (i) when I pasted in a textbox with text mode as single line, the portion of the text before the enter symbol alone pasted. (ii) when I pasted it in the with text mode as multiline, then it is pasted as two lines. Is there any way to get the same text in textbox?
Jey
No - in fact, it's notepad that's messing with you, the textbox is correctly showing you two lines, if it's in that mode. If it's not, it's correctly stopping at the end of the single line.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )