how do i restrict user not to type more than 5 lines in RTFBox
Posted on 2003-11-11
how do i restrict user not to type more than 5 lines in RTFBox. I am using SendMessage API method (in keypress event), which returns me nos. of line but when i press any key at the end of fifth line, it wrap the last word on sixth line, this is only the problem, otherwise it works fine.
It is very urgent, any help, idea, or clue will be highly obliged. Thanks in advance.