L
liups
Hi,
I have a multi-line textbox that accepts text input, I want it to
adjust its height according to the text it holds, so I use a
SendMessage API to get the line count of the text, then set the
TextBox.Height to (linecount * font.Height), but there is something
wrong with this calculation, the textbox is always larger than the
text lines, any ideas?
Thank you.
I have a multi-line textbox that accepts text input, I want it to
adjust its height according to the text it holds, so I use a
SendMessage API to get the line count of the text, then set the
TextBox.Height to (linecount * font.Height), but there is something
wrong with this calculation, the textbox is always larger than the
text lines, any ideas?
Thank you.