RichTextBox and Drawing

Dave_Q_Stone

New member
Joined
Dec 22, 2005
Messages
1
Programming Experience
1-3
Hi Everyone,

i have a problem with drawing in richtextbox. I can draw a line , rectangle etc but i can't print these drawings. Like the drawings we're only temporary and as they we're not part of the richtextbox. Also when i wanted to add some text after the drawing has been made , the drawings has disappeard.

plz help , i need to print text with one bitmap and some lines

PS: sorry for my english
 
If you draw directly on a control then you need to do it on the Paint event so that it gets redrawn every time the control is refreshed. The only way to draw permanently is to draw directly on a Bitmap object. The only way that I've seen to put a Bitmap in a RTB is via the clipboard.
 
Back
Top