Force Richtextbox scrollbars to refresh

Posted by Jiri on Stack Overflow See other posts from Stack Overflow or by Jiri
Published on 2010-06-14T09:09:04Z Indexed on 2010/06/14 9:12 UTC
Read the original article Hit count: 366

Filed under:
|
|

This question is about WinForms RichTextbox.

I have a RichTextbox with ScrollBars property set to Vertical.

I change it's RTF contents from the code and sometimes the vertical scrollbar appears disabled - when it should be enabled. This should never happen - the scrollbar should be either enabled, or not shown at all. (I had a similar issue in my VB6 app, when the scrollbar sometimes didn't appear at all when it should).

Is there any way how to force the RichTextbox scrollbars to refresh, via PInvoke or any other way to fix this issue?

Thanks.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about richtextbox