C#, Display plain text in a form

29,314

Solution 1

You can use a Label or a TextBox.

If you use a TextBox, set MultiLine to true and ReadOnly to true to not allow editing.

Solution 2

Use a TextBox or Label. That's what they're designed for - displaying plain text.

Share:
29,314
Julius F
Author by

Julius F

Updated on July 28, 2021

Comments

  • Julius F
    Julius F almost 3 years

    I can only find rather "complex" functions, like RTF Text box etc. I couldn't figure out how to display "plain text" in a Form1.cs

    (I do not talk about HTML to WinForm. Search did not return any useful results)