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. C / C++ / MFC
  4. trapping enter key .

trapping enter key .

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 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.
  • R Offline
    R Offline
    rajeev82
    wrote on last edited by
    #1

    Hi all, I've developed one dialog base application in which there is an edit box with multiline selection enabled. after entering an text into the edit box, if i click "ENTER" key to get to the next line the application closes up.What could be the reason?? could anyone help me out in this please. Thanks And Regards, Rajeev

    S N 2 Replies Last reply
    0
    • R rajeev82

      Hi all, I've developed one dialog base application in which there is an edit box with multiline selection enabled. after entering an text into the edit box, if i click "ENTER" key to get to the next line the application closes up.What could be the reason?? could anyone help me out in this please. Thanks And Regards, Rajeev

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      Make sure the ES_WANTRETURN is set on the edit control. Without this the dialog handles the keystroke and interprets it as a press of the default button (the button with a darker border around it). The dialog editor allows you to set this style. Steve

      1 Reply Last reply
      0
      • R rajeev82

        Hi all, I've developed one dialog base application in which there is an edit box with multiline selection enabled. after entering an text into the edit box, if i click "ENTER" key to get to the next line the application closes up.What could be the reason?? could anyone help me out in this please. Thanks And Regards, Rajeev

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        rajeev82 wrote:

        if i click "ENTER" key to get to the next line the application closes up.What could be the reason??

        Set the "Want return" property of the edit box to TRUE.


        Nibu thomas Software Developer

        R 1 Reply Last reply
        0
        • N Nibu babu thomas

          rajeev82 wrote:

          if i click "ENTER" key to get to the next line the application closes up.What could be the reason??

          Set the "Want return" property of the edit box to TRUE.


          Nibu thomas Software Developer

          R Offline
          R Offline
          rajeev82
          wrote on last edited by
          #4

          Thanks a Lot for ur help!!!!!!!!

          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