Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display the string like following in multiline in edit box which is loaded from string table.

Wishes
-Bhuvana

Steps taken:
Made multiline property to true.
Added string like "Wishes \n\t -Bhuvana" in String table.

No use of above two steps it is coming in single line only.

Can anyone pls help with this?
Posted

Hi,
The first step is correct and in second step use \r\n instead of \n.Means whenever you want to insert new line in edit box through code you have to use \r\n(CTRL+ENTER in GUI).
 
Share this answer
 
Comments
bunathangaraj 28-Mar-11 5:49am    
Thanks Venkat. It is working.
welcome
[no name] 28-Mar-11 6:14am    
Nice one dude.
try to use double backslash instead of single. like this

"Wishes \\n\\t -Bhuvana"
 
Share this answer
 
Comments
bunathangaraj 28-Mar-11 5:51am    
Hi it is working fine with single slash itself .. wat is the diff bet single and double slash?
walterhevedeich 28-Mar-11 5:59am    
sorry I thought it was C#. My bad. Its the way you do it in C#.
bunathangaraj 28-Mar-11 6:00am    
no worries... shortly i am going to learn c# it will be helpful then :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900