Graphics.DrawString Text with multi-line


  • Hello everyone,

    I have a textbox with multiple lines. I can draw a string from a textbox only if the text is in single line. Can you help me find a way how to draw if the textbox has a value of multiple lines?

    Thanks in advance.


    Saturday, February 25, 2006 8:30 AM

All replies

  • Use one of the drawstring methods that accepts a rectangle or rectanglef
    Saturday, February 25, 2006 12:30 PM
  • Hi all,

    Please disregard this question. I already solved my problem.

    I split the text to string array and loop to it then draw each word from loop using drawstring method.



    Saturday, February 25, 2006 1:43 PM