I have previously used the arguments of a contentsResized event on a Winforms richtextbox to get the new size of my RTB.
I am now developing a WinForms app with a custom WPF RichTextBox. My whole reason for doing this is to use the out-of-the-box spellchecker.
I need my RichTextBox to expand and collapse vertically as the text is changed. The elementhost will also have to resize to allow the whole RTB to display on-screen.
Help! :)