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. Entery key functionality in WPF textbox

Entery key functionality in WPF textbox

Scheduled Pinned Locked Moved WPF
csharpwpf
4 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.
  • H Offline
    H Offline
    Hema Bairavan
    wrote on last edited by
    #1

    Hi All, I have a wpf text box in which i am unable to press enter key, if i press its not doing anything,, actually i need if the user press enter button a new line should be inserted but its not happening.. do i need to do that in the Keydown event (finding the key pressed is enter) or is there any other way. Please let me know. Thanks in advance

    K 1 Reply Last reply
    0
    • H Hema Bairavan

      Hi All, I have a wpf text box in which i am unable to press enter key, if i press its not doing anything,, actually i need if the user press enter button a new line should be inserted but its not happening.. do i need to do that in the Keydown event (finding the key pressed is enter) or is there any other way. Please let me know. Thanks in advance

      K Offline
      K Offline
      Kubajzz
      wrote on last edited by
      #2

      Make sure the AcceptsReturn property of your textbox is set to true.

      H 1 Reply Last reply
      0
      • K Kubajzz

        Make sure the AcceptsReturn property of your textbox is set to true.

        H Offline
        H Offline
        Hema Bairavan
        wrote on last edited by
        #3

        Thanks Mr Kubajzz for your time and for your help. I didnt set that property when i set that it works fine. Thanks again

        K 1 Reply Last reply
        0
        • H Hema Bairavan

          Thanks Mr Kubajzz for your time and for your help. I didnt set that property when i set that it works fine. Thanks again

          K Offline
          K Offline
          Kubajzz
          wrote on last edited by
          #4

          You are welcome!

          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