HELP ME ! How to I check Richtext box.

HELP ME !!!!! How to I check Richtext box.

Page 1 of 1

1 Replies - 734 Views - Last Post: 06 March 2009 - 02:42 PM Rate Topic: -----

#1 noteperfect  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 06-March 09

HELP ME ! How to I check Richtext box.

Posted 06 March 2009 - 03:57 AM

I have a problem with my project.
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


Is This A Good Question/Topic? 0
  • +

Replies To: HELP ME ! How to I check Richtext box.

#2 tody4me  Icon User is offline

  • Banned
  • member icon

Reputation: 12
  • View blog
  • Posts: 1,398
  • Joined: 12-April 06

Re: HELP ME ! How to I check Richtext box.

Posted 06 March 2009 - 02:42 PM

Check for the new line constant (/n) in the text supplied. If that doesn't work, see signature.

This post has been edited by tody4me: 06 March 2009 - 02:43 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1