| | |
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 2007 access algorithm appportability array barchart bitmap box broadcast c# camera check checkbox client combobox control conversion cs4 csharp custom database datagrid datagridview dataset date datetime degrees development draganddrop drawing encryption enum event eventcloseformc# excel file form format forms function gdi+ handler httpwebrequest image index input install java keypress label list listbox listener listview load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post programming radians regex remote remoting resolved. richtextbox search security server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation view visual visualstudio webbrowser windows winforms wordautomation wpf xml






