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. WPF
  4. Quick TextBox Question

Quick TextBox Question

Scheduled Pinned Locked Moved WPF
questiontutorial
3 Posts 2 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.
  • B Offline
    B Offline
    BlitzPackage
    wrote on last edited by
    #1

    Good people, How do I enable a TextBox to allow empty returns.   For example, when I press enter, it will allow a new line or blank lines if I press it multiple times. Sort of like what I did to get to this new line, I just pressed enter a few times. Thanks for any information you can provide. Blitz

    P 1 Reply Last reply
    0
    • B BlitzPackage

      Good people, How do I enable a TextBox to allow empty returns.   For example, when I press enter, it will allow a new line or blank lines if I press it multiple times. Sort of like what I did to get to this new line, I just pressed enter a few times. Thanks for any information you can provide. Blitz

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Set the following properties in your textbox TextWrapping="Wrap" AcceptsReturn="True"

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      B 1 Reply Last reply
      0
      • P Pete OHanlon

        Set the following properties in your textbox TextWrapping="Wrap" AcceptsReturn="True"

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        B Offline
        B Offline
        BlitzPackage
        wrote on last edited by
        #3

        Thanks, I really appreciate it. Blitz

        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