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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top