How do I programmatically add lines to a Rich Text Box
Posted on 2009-02-20
I have to read the contents of a number of text boxes andmaybe some list boxes (which could potentially hold a large number of items).
Having read them I have to add them to a Rich Text Box for output to a file or printer (or both).
I'm pretty new to Visual BAsic and have learned how to do things with RTBs like change fonts, styles and change the current text.
Can somone please advise me how I write multiple lines to a RTB, i.e. read the contents of a text box, insert it into the next line of a RTB, read the next text box, insert it etc.
(I know how to get the contents of the txt and list boxes, just not how to add them all to the RTB.