Wednesday, March 28, 2012

Text Box Will Not Wrap Text

VWD 2005 Express. Visual Basic. I placed a text box control on my page. I set the wrap property to true. I assign a value to the text property from code behind. The text does not wrap, but instead disappears when it hits the right margin. The only way I seem to be able to get it to wrap is to set the text box control to "multiline." However, this puts up a scroll bar, which I do not want. I want the box to be single line and to wrap. What might I be doing wrong?

you cant wrap the text unless it's multiline...

You can (I think) remove the scrollbars though, but it will need to be multiline


You need multiline...

What exactly are you trying to do? Have you considered a listbox? How about a dropdownlist box?


Turns out that a label control served me better. Thanks.

0 comments:

Post a Comment