DHTMLEdit control
-
hi, i m developing a text editor. I m using Dhtml edit control rather than richtext box control. My problem is, i wana limit the number of lines in dhtmal edit control. that is i want that a user can enter only 20 lines in dhtml edit control. and after than he has to go on the other page for writing further. so is it possible to limit the number of lines in dhtml edit control. Thx in advance...
King
-
hi, i m developing a text editor. I m using Dhtml edit control rather than richtext box control. My problem is, i wana limit the number of lines in dhtmal edit control. that is i want that a user can enter only 20 lines in dhtml edit control. and after than he has to go on the other page for writing further. so is it possible to limit the number of lines in dhtml edit control. Thx in advance...
King
Nope. There is no property that exposes this. The DHTMLEdit control is design to edit web pages, not Rich or normal Text.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Nope. There is no property that exposes this. The DHTMLEdit control is design to edit web pages, not Rich or normal Text.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007thx for reply me. Can u tell me how i can do the same thing in richtext box control that is if the user writes 20 lines then how can i forces him to further write on the next page. plz reply me..... n thx in advance
King
-
thx for reply me. Can u tell me how i can do the same thing in richtext box control that is if the user writes 20 lines then how can i forces him to further write on the next page. plz reply me..... n thx in advance
King
What "next page"?? You can handle the TextChanged event of the RTB, check to see how many "lines" (hint: Lines property - the RTB defines a line as a bunch of text with an [ENTER] key on the end, NOT the visual lines on the screen!) then do whatever you want when the number gets to 20.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
What "next page"?? You can handle the TextChanged event of the RTB, check to see how many "lines" (hint: Lines property - the RTB defines a line as a bunch of text with an [ENTER] key on the end, NOT the visual lines on the screen!) then do whatever you want when the number gets to 20.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007thx. i got your point. Now i m facing another problem in RTB. When i use a image in RTB and try to resize it, the resolution of the image destroyed. Can you suggest anything for solving this problem. I m using DHTMLEdit instead of RTB just becuase of image resolution problem. If you have any solution plz tell me thx man...
King