Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Richtextbox cleared & refreshed

Status
Not open for further replies.

BicMac080

Technical User
Apr 22, 2005
16
BE
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 :
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top