I would like to ask How to check page height of Richtextbox.
I want to each page Equal.
I don't want to count line because line of richtextbox is not equal.
if (rtbDoc.Lines.Length == 57)
{
MessageBox.Show("Test");
rtbDoc.Select(0, 0);
rtbDoc.ScrollToCaret();
}
Problem is Each line not equal.
When I change font or insert image ,Line.Lenght=57 is not appropriate.
Please help me How to I check page height of Richtext box.
This post has been edited by noteperfect: 06 March 2009 - 06:57 PM

New Topic/Question
Reply




MultiQuote



|