do you know how to force a Richtextbox to redraw ONLY it’s foreground (not background).
Should i send a message or something like that ?
Thanks !
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can override the
OnPaintBackgroundmethod.Of cause this means that you have to derive your own RichTextBox form the original
With the
Invalidatemethod of controls you can tell controls that they should redraw themselves. TheRefreshmethod invalidates a control and tells it to redraw itself immediately (usingOnPaintBackgroundandOnPaint).