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

How to include newline in TxtBox.Text display

P: n/a
Hi,
I am using statements of type TxtBox.Text="Hello \n Hi"

But they appear in same line with special character.

How to make display in TextBox in different lines....

Thanks
C# Pro
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
TxtBox.Text="Hello \r\n Hi";

Chester.

"IceColdFire" <Ic*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
Hi,
I am using statements of type TxtBox.Text="Hello \n Hi"

But they appear in same line with special character.

How to make display in TextBox in different lines....

Thanks
C# Pro

Nov 16 '05 #2

P: n/a
Great and many thanks...
also....I a making a database connection toa remote server, can I show the
time spent as progress bar as now the button gets pressed for few seconds
before I got to see connectioon results...

Bye
C# Pro

"Chester Ragel" wrote:
TxtBox.Text="Hello \r\n Hi";

Chester.

"IceColdFire" <Ic*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
Hi,
I am using statements of type TxtBox.Text="Hello \n Hi"

But they appear in same line with special character.

How to make display in TextBox in different lines....

Thanks
C# Pro


Nov 16 '05 #3

P: n/a
Hi,

Two things:
1- Make sure that the TextoBox support multilines
2- Use Environment.NewLine as the new line character.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"IceColdFire" <Ic*********@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
Hi,
I am using statements of type TxtBox.Text="Hello \n Hi"

But they appear in same line with special character.

How to make display in TextBox in different lines....

Thanks
C# Pro

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.