I have a textbox which can return various strings ranging from 5 characters upto 1000 characters in length.
It has the following properties:
- multiline = true
- wordwrap = true
Which other properties of the textbox do I need to set to make the following possible?
- The width of the box should be fixed
- The height of the box to auto adjust depending on how much text it is returning e.g if the text runs onto 3 lines then it adjusts to 3 lines in height.
Try this following code: