eramgarden Posted October 6, 2006 Posted October 6, 2006 Howcome my Enviroment.NewLine doesnt work?? All shows up on one line. I found this link and tried char(3) and VBCrlf as well but no use. My text box is wide enough. I tried "multiline" property of textbox but i dont want "multiline" and have a scrollbar next to the text box. Howcome this doesnt work? http://www.xtremedotnettalk.com/showthread.php?t=94136&highlight=Environment.NewLine Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load txtError.Text = "You do not have access to the System:" & vbCrLf & _ "Authenticated: " & Request("Authenticated") & Environment.NewLine & _ "Anonymous: " & Request("Anonymous") & Environment.NewLine & _ "Type: " & Request("Type") & Environment.NewLine '& _ '"Error: " & Request("Error") End Sub Quote
Gill Bates Posted October 6, 2006 Posted October 6, 2006 If it's the System.Windows.Forms.TextBox control then try changing the "Multiline" property to true. Quote
techmanbd Posted October 6, 2006 Posted October 6, 2006 as Gill says, and use vbNewline. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
eramgarden Posted October 6, 2006 Author Posted October 6, 2006 This is ASP.Net. If I use "multiline", I get the scrollbar which I dont want. I tried VbNewLine but still all shows up on one line! Quote
techmanbd Posted October 6, 2006 Posted October 6, 2006 Yes, without multiline, the vbNewline will only show 1 line. I am not familiar with ASP.net. Does it use the same tool as VB .NET? because is so, look in the properties area. There is a property called "ScrollBArs" and you can set that to "none". Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.