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. Windows API
  4. Regarding Button Event

Regarding Button Event

Scheduled Pinned Locked Moved Windows API
tutorial
2 Posts 2 Posters 4 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.
  • D Offline
    D Offline
    dayakar_dn
    wrote on last edited by
    #1

    Hi All, i have one textbox, we written a code such a way that,after the value entered in the textbox then we press enter it is doing some action. Similary we have one Button, if we enter it was doing some action. Now my requirement is that if i press the enter, at that time i need to raise the button event for that what we need to do. i.e how to sink the button event when we press enter button. If anybody knows the answer kindly let me know.. if you have any qurries regarding this mail to me. Thanks and Regards Dayakar D.N

    M 1 Reply Last reply
    0
    • D dayakar_dn

      Hi All, i have one textbox, we written a code such a way that,after the value entered in the textbox then we press enter it is doing some action. Similary we have one Button, if we enter it was doing some action. Now my requirement is that if i press the enter, at that time i need to raise the button event for that what we need to do. i.e how to sink the button event when we press enter button. If anybody knows the answer kindly let me know.. if you have any qurries regarding this mail to me. Thanks and Regards Dayakar D.N

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      If you are talking about controls in a dialog, then set the Default style on the button that you want to be trigged when Enter is pressed. The dialog manager will do the rest.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

      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