Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What i am after is every use create a new line in the multiline textbox i have looked on line and cant see anything love it if you could help me :)

C#
foreach (htmlelement use in uses)
{
string u = use.getattribute("h");
if (u.contains("/use/"))
{
results.appendtext(use.innertext);
}
Posted
Updated 10-May-13 12:52pm
v2

1 solution

Append a Environment.NewLine and then the use.innertext.
 
Share this answer
 
v2
Comments
[no name] 10-May-13 18:54pm    
yes but in which part of the code i have seen envirnmenet.newline but didnt know where to add it?
Dave Kreskowiak 10-May-13 18:55pm    
I just said "APPEND" it. Isn't that a bit of hint??

results.AppendText(Environment.NewLine);
[no name] 10-May-13 18:58pm    
yes i am aware of this but..... after it has made a new line for each one there is loads of blanks lines?
Dave Kreskowiak 10-May-13 19:32pm    
I have no idea what you're talking about, what your code looks like, and what you're trying to do with all this. Bascially, with the complete lack of details on your part, it's impossible for anyone to help you.

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