How can we know if Scroll bars are active?
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have a RichTextBox control with a vertical scroll; however, the vertical scroll is not always active depending on the height of my control. Is there a way to figure out when the vertical scroll becomes visible on the control? Reason I need is to calculate the number of characters per line and to do it I use method
GetCharIndexFromPosition(pointAtRightCorner)
and the pointAtRightCorner variable depends on whether vertical scroll is active or not.