Hi Paul,
This is a style property that you can add on your own as an attribute.
You're looking for overflow:hidden like this:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
TextBox1.Attributes.Add("style", "overflow:hidden")
End Sub
Here's the Textbox itself:
<asp:textbox id="TextBox1" runat="server" Width="264px"
Height="160px" TextMode="MultiLine">The property is read/write for all
objects except the following, for which it is read-only: currentStyle. The
property has a default value of visible for all objects with the exception
of TEXTAREA which has a default value of auto. The Cascading Style Sheets
(CSS) attribute is not inherited.
Setting the overflow property to hidden on a textArea object hides its
scroll bars.
</asp:textbox>
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/overflow.asp
Does this help?
Ken
Microsoft MVP [ASP.NET]
Paul J. Lay said:
Is there any way to get rid of the scroll bars on a multiline TextBox. I
don't see an attribute for that in the Web Form textbox properties.
Please
advise. Thanks for your help.
Best Regards,
Paul J. Lay