How to set a Textbox to allow multiple lines, and scrollability

Question:

I am returning multiple different sizes of strings into a box.
I have used a System.Windows.Forms.Label but unfortunately some of the strings are too large for it, and do not display.
I have tried replacing it with a System.Windows.Forms.TextBox but it will not let me set the height of it past 1 line, even with multiline set to true, and scrollbars set:

Is there anything I’m missing here?

Answer:


Options for Scrollbars can be “Vertical”, “Horizontal”, or “Both”.

Source:

How to set a Textbox to allow multiple lines, and scrollability by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply