Multi-line text editor

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

Is it possible to use a text control (or any other control) to display upto
three lines of text?

Thanks

Regards
 
Hi,

Set the textboxes multiline property to true and adjust the size of
the textbox.

Ken
 
Hi John,

There's also the RichTextBox which will allow you to do more
formatting/colouring/etc, if required.

If you only want to display the text, you can use DrawString with a
Rectangle to define the bounds of the text (thus making it split into three
lines). This method would work in the Paint event handler of any Control whose
e.Graphics you care to play with.

Regards,
Fergus
 
Back
Top