I am trying to create a fixed 'character ' based ruler using the RichTextBox control. The RTB control
will only contain one line of text that will not wrap, thus I am looking for a way to programmatically calculated the maximum number of visible characters in a RTB control based on the RTB width and the style (monospaced).
MSDN example: http://msdn.microsoft.com/en-us/library/9bt8ty58(v=vs.110).aspx
Also is there a way to turn off the RTB scrollbars?
Thanks
erik
will only contain one line of text that will not wrap, thus I am looking for a way to programmatically calculated the maximum number of visible characters in a RTB control based on the RTB width and the style (monospaced).
MSDN example: http://msdn.microsoft.com/en-us/library/9bt8ty58(v=vs.110).aspx
Also is there a way to turn off the RTB scrollbars?
Thanks
erik