Determine height of a dynamic text box?


I want to pull text from a database and put it into a dynamic text box. I’m wondering how I can get the textbox to size itself horizontally according to the amount of text in the string. I also need to figure out a way to determine the height of this text box dynamically, so other content can be placed just below it. Anyone have any ideas on how to go about that?

Any help would be greatly appreciated. Thanks.