Hello,
After clearing & refreshing my richtextbox that contains only text, it appears that the vertical scroller on the right side is still visible and I have to call once again the clear and refresh function to make it disappeared.
I use this code on a button to clear & refresh the richtextbox :
repeating these functions twice on the same button has the same result (text cleared but scroller still present), I have to click twice this button to have my richtextbox without scroller.
Does anyone know how to clear the richtextbox and make this scroller disapeared in one action ?
Thanks.
After clearing & refreshing my richtextbox that contains only text, it appears that the vertical scroller on the right side is still visible and I have to call once again the clear and refresh function to make it disappeared.
I use this code on a button to clear & refresh the richtextbox :
Code:
RichTextBox.Clear();
RichTextBox.Refresh();
repeating these functions twice on the same button has the same result (text cleared but scroller still present), I have to click twice this button to have my richtextbox without scroller.
Does anyone know how to clear the richtextbox and make this scroller disapeared in one action ?
Thanks.