>There is a built in facility to limit the number of characters entered into one of these controls, but there does not seem to be a way of limiting the number of lines entered, irrespective of how many characters are on each line. Does anybody have a workaround?
>
>TIA, Kevin
If you're talking about basing the number of lines in the editbox on the number of CRLFs then you might could test on the number of CRLFs in the string in the Keypress event only testing when Enter is pressed or something like this. You'd probably have to fiddle with a good bit to get it to work.
If you're basing it on the number of lines displayed with Wordwrap on irrespective of CRLFs, I don't see any reliable way to do it cause it would depend on editbox size and font type and size at any given time.
Other than this, perhaps there is an ActiveX control out there taht will give this functionality.
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.