I am creating an invoice program for a small local company but have run into sort of a problem. I have it setup so the invoice is printable by taking a screen shot of the application then remove all image detail so it is just the text from the Windows Form.
Problem is RichTextBoxes do not support drawing the text from them using DrawToBitmap. To fix this issue I am attempting to use a normal textbox. When inputting the address into a new textbox it does not show the returns in the text so it is all bunched up. Is there a way to fix this?
First all, I’ll assume your TextBox’s
Multilineproperty is set totrue.This will work:
This code formats the text in your RichTextBox (in its
Linesproperty) so your TextBox will display it properly.