title: C# asp:ListBox hide vertical scrollbar
body: <p>How to hide the vertical scroll bar of a Listbox that is present inside a div.</p>
  
  <pre><code>&lt;div id="lstQueriesDiv" style="overflow-y: hidden !important; overflow-x: auto !important;
           Width: 650px; height:167px;" &gt; 
   &lt;asp:ListBox ID="lstQueries" runat="server" CssClass="cssLstQueries" Rows="9"&gt;&lt;/asp:ListBox&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>css: </p>
  
  <pre><code>    .cssLstQueries{
      Width:auto;
      }
  </code></pre>
  
  <p>I want to hide the vertical scrollbar of the listbox not the the vertical scrollbar of the div.</p>