Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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".
Live as if you were to die tomorrow. Learn as if you were to live forever.
Gandhi

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...