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#
  4. "Default" attribute to button ?

"Default" attribute to button ?

Scheduled Pinned Locked Moved C#
c++questioncsharp
3 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.
  • S Offline
    S Offline
    Szymon Pusz
    wrote on last edited by
    #1

    How can I add something like "default" attribute to button? When I press the ENTER key I simply want to activate specific button, but where is the "default" attribute? It was in Visual C++, but in C# I don't see it... :((

    A 1 Reply Last reply
    0
    • S Szymon Pusz

      How can I add something like "default" attribute to button? When I press the ENTER key I simply want to activate specific button, but where is the "default" attribute? It was in Visual C++, but in C# I don't see it... :((

      A Offline
      A Offline
      AndyG
      wrote on last edited by
      #2

      The behavior you are looking for is the AcceptButton property of a Windows Form class. Example: this.AcceptButton = this.myButton; Andy Gaskell, MCSD MCDBA

      D 1 Reply Last reply
      0
      • A AndyG

        The behavior you are looking for is the AcceptButton property of a Windows Form class. Example: this.AcceptButton = this.myButton; Andy Gaskell, MCSD MCDBA

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        Which, after all, is a more elegant modeling... Crivo Automated Credit Assessment

        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