| | |
Line feeds in a Textbox
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 57
Reputation:
Solved Threads: 1
I am trying to add new lines to a TextBox control. I have MultiLine set to true and AcceptsReturn set to true. If I use the AppendText() method, I just get more text immediately behind what is already there. If I insert or add a newline escape \n it just prints a box in the text at that point. I can't believe this control is that stupid. Maybe it's me. Is there any way to get a newline into a TextBox???
use Textbox.Text+= yourString;
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
![]() |
Similar Threads
- Reading line breaks in a textbox (Visual Basic 4 / 5 / 6)
- save textbox values to database (ASP.NET)
- separating line by line from textbox with textmode=multiline (ASP.NET)
- Output MySQL text field formatted (PHP)
- Basic Question (Visual Basic 4 / 5 / 6)
- WriteFile() function in printf() freezes (C)
- Onehost.ws and why is bandwidth expensive? (Web Hosting Deals)
- mod_rewrite in asp .net using vb (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: RichTextBox question
- Next Thread: Delete Internet Temporary Files
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file filename finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile gis globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml






