How to include newline in TxtBox.Text display

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Hi,

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

Cheers,
 
Back
Top