By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,931 Members | 1,567 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,931 IT Pros & Developers. It's quick & easy.

String to have hard return to multi line text box

P: n/a
This is for a Win form.

I am able to send a string to my multi line text box, but I want the string
to have hard returns in it.

Here is my code for the string.

string s = string.Format(Cell1 + " - " + Cell2 + " - " + Cell3 + " - " +
Cell4);

I what a hard return after each Cell variable.

Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
check out

Environment.NewLine

HTH

Ollie Riches
"Mike L" <Ca***@nospam.nospam> wrote in message
news:0B**********************************@microsof t.com...
This is for a Win form.

I am able to send a string to my multi line text box, but I want the
string
to have hard returns in it.

Here is my code for the string.

string s = string.Format(Cell1 + " - " + Cell2 + " - " + Cell3 + " - " +
Cell4);

I what a hard return after each Cell variable.

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.