#24 Scrollbar doesn't appear when resizing RichTextBox2

John Suit

The scrollbar appears normally when changing the following (provided content overflows new text box size):

* Decreasing the width.
* Increasing the width.
* Increasing the height.

However, the scrollbar does not appear when:

* Decreasing the height.

Reproduction path:

1.) Add RichTextBox2 to a form.
2.) Wire-up events on form resize.
3.) Have these events also resize the RichTextBox2 proportionally.
4.) Add content to the RichTextBox2 that forces the vertical scrollbar to appear.
5.) Resize form in all four directions, and note that the scrollbar is not rendered when decreasing the form's (and RichTextBox2's) height. After this, the scrollbar is then rendered when the form is resized in any other direction.


  • Craig Andera

    Craig Andera - 2008-08-27

    Logged In: YES
    Originator: NO

    Thanks for the bug report. However, I have absolutely zero time to work on fixes for this stuff right now, so this one (and all the others) are going to stay active. Sorry!

  • John Suit

    John Suit - 2008-08-27

    Logged In: YES
    Originator: YES

    No problem, Craig. I'm just posting them for future reference and work. As for this bug, the workaround is quite simple: after I resize the RichTextBox2 control, I just run its Refresh method or similar to get it to update.


Log in to post a comment.