Hide scroll bar on multi-line ASP.NET textbox

Posted on 2006-04-25
Last Modified: 2007-11-27
I am using a text box on a webform in an 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
    LVL 15

    Accepted Solution

    <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

    The might work for an textarea control but i am using an textbox
    LVL 35

    Expert Comment

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

    Expert Comment

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

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    The first time you look at a web page and its source code, you are probably a little intimidated by the use of symbols and jargon that really looks foreign to you. You might not even know where to start to begin learning what it all means. That’…
    Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now