Hi,
I do not understand clearly what you are trying to do, but I can give you a
few suggestion, first of all, if it's for a MessageBox you should use a
Label instead of a TextBox , use the TextBox only if the user can change the
Text.
You can format the text of the message, I remember I did that once in
javascript you could insert \n at certain points to force a correct display
of the message, later you can know how many lines the message has by
counting the \n.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"DotNetJunkie" <do**********@gmx.net> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
Hi NG,
I want to pass a very long string to a multilined TextBox. After doing
this, I want to resize the TextBox vertically, so that the text fits into the
TextBox exactly. Any ideas? I need it for a custom MessageBox.
Thank you
Rudi