locked
Invisible scroll bar in multiline textbox in vb.net RRS feed

  • Question

  • User-1578974752 posted

    I want a multiline text box so that user can type 200 + lines themselves with out showing the scroll bar. Actually the size of multiline text box is very big . hence not needed to show the scroll bar.I set boarder style none. still scrolling portion is visible while running

      Still the scroll bar is showing even if the text is just 10 line(but in disabled manner.)  Is there any way for not showing the scroll bar in the multiline textbox. Appreciate the help

    Tuesday, July 30, 2019 3:59 AM

Answers

  • User-821857111 posted
    <textarea style="overflow:hidden"></textarea>
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 30, 2019 7:42 AM

All replies

  • User-821857111 posted
    <textarea style="overflow:hidden"></textarea>
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 30, 2019 7:42 AM
  • User665608656 posted

    Hi shsu,

    Is there any way for not showing the scroll bar in the multiline textbox

    One more thing: If you want to ban scrollbar display all the time, you can use @Mike's advice, which is the best choice.

    If you want the scrollbar to display automatically when you need it, you can set it to overflow: auto

    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <style type="text/css">
            .text{
     /*choose what you need*/ /*overflow:auto;*/
    /*overflow: hidden;*/ } </style> </head> <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Rows="200" Columns="200" CssClass="text"></asp:TextBox> </div> </form> </body> </html>

    You can also refer to this link : overflow

    Best Regards,

    YongQing.

    Tuesday, July 30, 2019 8:41 AM