K
Ken Cox [Microsoft MVP]
Hi JSH,
This code might be what you're after:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim tb As New TextBox
tb.TextMode = TextBoxMode.MultiLine
tb.Rows = 1
tb.Style.Add("OVERFLOW", "hidden")
PlaceHolder1.Controls.Add(tb)
End Sub
It produces this as the Style for the texbox:
style="OVERFLOW:hidden;"
Does this help?
Ken
Microsoft MVP [ASP.NET]
This code might be what you're after:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim tb As New TextBox
tb.TextMode = TextBoxMode.MultiLine
tb.Rows = 1
tb.Style.Add("OVERFLOW", "hidden")
PlaceHolder1.Controls.Add(tb)
End Sub
It produces this as the Style for the texbox:
style="OVERFLOW:hidden;"
Does this help?
Ken
Microsoft MVP [ASP.NET]