[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Hide scroll bar on multi-line ASP.NET textbox

Posted on 2006-04-25
Medium Priority
Last Modified: 2007-11-27
I am using a text box on a webform in an asp.net project I am working on.  Some of the text boxes are set to MultiLine instead of single line.  I am wondering if it is possible to hide the scroll bar from being displayed?
Question by:Mike_Stevens
  • 2
LVL 15

Accepted Solution

deepaknet earned 2000 total points
ID: 16534973
<textarea rows="5" cols="60" style="overflow:hidden">
   Some long text to go here.    Some long text to go here.    Some long text to go here.    Some long text to go here.    Some long text to go here.    Some long text to go here.

Author Comment

ID: 16535673
The might work for an textarea control but i am using an asp.net textbox
LVL 35

Expert Comment

ID: 16536804
textboxname.Attributes.Add("style", "overflow:hidden;")
LVL 35

Expert Comment

ID: 16545200
Did you even try my solution which adds that attribute to an ASP.NET textbox?

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month19 days, 4 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question