TextBox and Scrollbars

  • Thread starter msnews.microsoft.com
  • Start date
M

msnews.microsoft.com

Note: I'm using VS "Whidbey" Beta 1 Refresh.

I am atttempting to display a modest amount of text using a Textbox control
on my webapp. I am using the TextBox since it offers the option to format
the text somewhat (paragraph breaks). The problem I have is that a vertical
scrollbar appears (greyed out since there isn't *that* much text). I don't
want them to ever appear. There is no scrollbar property that I can find for
this beast. What are my options?

Cheers
John
 
E

Edge

msnews.microsoft.com said:
Note: I'm using VS "Whidbey" Beta 1 Refresh.

I am atttempting to display a modest amount of text using a Textbox
control on my webapp. I am using the TextBox since it offers the
option to format the text somewhat (paragraph breaks). The problem I
have is that a vertical scrollbar appears (greyed out since there
isn't *that* much text). I don't want them to ever appear. There is
no scrollbar property that I can find for this beast. What are my
options?

Cheers
John

You can achieve this with style sheets.

Just add a
style="overflow:hidden"
attribute to your textbox.

You can also define a style sheet class with the same style, and assign it
to the CssClass property of the textbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top