Visual Basic .NET » Windows Registry and File I/O
mutiline textbox newlines -- jimmyatic --


For Quite a while, I've been working with C++ .cpp files, using things like cout, cin, strings, blah blah... Now, I've started in with Visual C++ apps. I can get the multiline textbox to work fine and dandy, but when i want to store the multiple lines of data into a cstring (because i have yet to find a way to use normal strings, which would also be useful) or what ever wierd string they use (LPCWSTR?) or when i try to change the contents of cstring x into "hello\ngoodbye" (thus cstring
="hello\ngoodbye") whenever i view the contents through the debugger or on screen it comes out to be "hello□goodbye". What I'm trying to ask is how to fix it. Is there a way.

Which i believe was Rob's problem on another posting:

"I was glad to see that VS2005 allows for multi line text for buttons,
etc. However, when I try to use it, it doesn't seem to work. For buttons, I only get the first line. For checkboxes, I get the first line and then a box, which I assume is the carriage return. Am I doing

something wrong, or is this a bug waiting to be fixed? "

-- jimmyatic --


For Quite a while, I've been working with C++ .cpp files, using things like cout, cin, strings, blah blah... Now, I've started in with Visual C++ apps. I can get the multiline textbox to work fine and dandy, but when i want to store the multiple lines of data into a cstring (because i have yet to find a way to use normal strings, which would also be useful) or what ever wierd string they use (LPCWSTR?) or when i try to change the contents of cstring x into "hello\ngoodbye" (thus cstring
="hello\ngoodbye") whenever i view the contents through the debugger or on screen it comes out to be "hello□goodbye". What I'm trying to ask is how to fix it. Is there a way.

Which i believe was Rob's problem on another posting:

"I was glad to see that VS2005 allows for multi line text for buttons,
etc. However, when I try to use it, it doesn't seem to work. For buttons, I only get the first line. For checkboxes, I get the first line and then a box, which I assume is the carriage return. Am I doing

something wrong, or is this a bug waiting to be fixed? "

[Submit Comment]Home