FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister  MasterVB.NET
Visual Basic 2005 .NET Forum
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
mutiline textbox newlines
 
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Windows Registry and File I/O
View previous topic :: View next topic  
Message
Author
jimmyatic
Newbie
Joined: 27 Jul 2006
Posts: 3

PostPosted: Thu Jul 27, 2006 1:00 pm    
Post subject: mutiline textbox newlines
Reply with quote

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? "



 

Back to top
View user's profile Send private message
Author
jimmyatic
Newbie
Joined: 27 Jul 2006
Posts: 3

PostPosted: Thu Jul 27, 2006 1:00 pm    
Post subject:
Reply with quote

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? "



 

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MasterVB.NET Forum Index -> Windows Registry and File I/O All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Archieve

Powered by phpBB © 2001, 2002 phpBB Group, used in Visual Basic 2005 .NET Forum

| Visual Basic .NET Forum | Online Recipe Archiver | Shareware Freeware PAD | Lowongan Kerja | Kamus Online | Health Supply | Digital Camera Review |
Orang Paling Keren

RSS