Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Insert a [Enter] in a String

Insert a [Enter] in a String

Scheduled Pinned Locked Moved Visual Basic
htmltoolshelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Knappen
    wrote on last edited by
    #1

    Helo Im new to VB-programming but im a good on ASP (VB-script). In ASP I inserted a chr(13) if i wanted a [enter] in my HTML-kod. But concating a chr(13) in a String ends up whit a square. HELP !!!

    N A A 3 Replies Last reply
    0
    • K Knappen

      Helo Im new to VB-programming but im a good on ASP (VB-script). In ASP I inserted a chr(13) if i wanted a [enter] in my HTML-kod. But concating a chr(13) in a String ends up whit a square. HELP !!!

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      You could try Chr(10), this may work. Are you using VB6 or VB.NET Nick Parker


      K 1 Reply Last reply
      0
      • N Nick Parker

        You could try Chr(10), this may work. Are you using VB6 or VB.NET Nick Parker


        K Offline
        K Offline
        Knappen
        wrote on last edited by
        #3

        I solved it, by using a RichTextBox. Then concating chr(13) into a String, ended upp showing return´s. (simple TextBox´s dont do the trick)

        1 Reply Last reply
        0
        • K Knappen

          Helo Im new to VB-programming but im a good on ASP (VB-script). In ASP I inserted a chr(13) if i wanted a [enter] in my HTML-kod. But concating a chr(13) in a String ends up whit a square. HELP !!!

          A Offline
          A Offline
          Anbuselvan
          wrote on last edited by
          #4

          Hi Friend, Try this for better. Text1.Text = "Anbu" & VbNewLine & "Selvan" Have a nice coding. P.Anbuselvan

          1 Reply Last reply
          0
          • K Knappen

            Helo Im new to VB-programming but im a good on ASP (VB-script). In ASP I inserted a chr(13) if i wanted a [enter] in my HTML-kod. But concating a chr(13) in a String ends up whit a square. HELP !!!

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            Isn't this what vbCrlf is for?

            K 1 Reply Last reply
            0
            • A Anonymous

              Isn't this what vbCrlf is for?

              K Offline
              K Offline
              Knappen
              wrote on last edited by
              #6

              Yes in VB6 but in VB.NET it´s System.Windows.Forms.Key.Return ---- The I moved on to RichTextBox and found this nice sample - using XHTML to RTF-format a RichTextBox http://www.gotdotnet.com/userarea/keywordsrch.aspx?keyword=xhtml (XHTML is well-formated HTML => XML) no unclosed tags (ex:
              is in XHTML
              )

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups