Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

How do I stop the scrolling of RTB? I currently have 100+ lines inside it and it keeps on adding so I want to disable the autoscrolling of it. And is it possible to pause the scroller at the lastline of the RTB? thanks.
Posted
Comments
Aravindba 6-Mar-14 21:53pm    
rich text-box purpose is multilines ,if dont want then use ordinary textbox

Hai
Rich text-box purpose is multilines ,if dont want then use ordinary textbox
u can try to reduce lenght in rich textbox
 
Share this answer
 
v2
If you set the RichTextBox.ScrollBars property to RichTextBoxScrollBars.None, any "overflow" of content added to it will not affect the appearance of it. It will display a number of lines that fit in its current height.

To turn on the vertical scrollbar, just set RichTextBox.ScrollBars to RichTextBoxScrollBars.Vertical, or RichTextBoxScrollBars.ForcedVertical.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900