Viewable lines in a rich text box?
Does anyone have an idea how to determine the number of lines that are
viewable on a rich text box. The Rich Text Box may have 40 lines of stuff
in it, but only 15 are able to be displayed at any one time because of its
size. But how do I determine via code that only 15 lines are viewable?
I had thought to get the client area (in particular the client height) and
then find the size of the font that was being used, but that doesn't quite
work. It appears that I am overlooking the space that naturally occurs
between lines, so how do I account for that?
Thanks in advance for the help.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL