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. Web Development
  3. ASP.NET
  4. enter key and initial cursor point

enter key and initial cursor point

Scheduled Pinned Locked Moved ASP.NET
questioncsharphelp
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.
  • S Offline
    S Offline
    sacoskun
    wrote on last edited by
    #1

    Hi to all, I have 2 problems: 1)I want to make the Enter(Return)key equal to clicking a button.(not page reload).E.g. Submit button. 2)My second question is how can we set the starting point of the cursor when the page is loaded with C#?E.g. A text box. Any help will be appriciated, Kind Regards, Arda - When in doubt, push a pawn! -

    A 1 Reply Last reply
    0
    • S sacoskun

      Hi to all, I have 2 problems: 1)I want to make the Enter(Return)key equal to clicking a button.(not page reload).E.g. Submit button. 2)My second question is how can we set the starting point of the cursor when the page is loaded with C#?E.g. A text box. Any help will be appriciated, Kind Regards, Arda - When in doubt, push a pawn! -

      A Offline
      A Offline
      Andy Smith
      wrote on last edited by
      #2
      1. Use my free DefaultButtons control. 2) Use my free FirstFocus control.
      S 1 Reply Last reply
      0
      • A Andy Smith
        1. Use my free DefaultButtons control. 2) Use my free FirstFocus control.
        S Offline
        S Offline
        sacoskun
        wrote on last edited by
        #3

        oh thanks Andy, I perefer not to add those codes to my project since I don't want to add a huge&complex code for a small function. I changed my mind and set the TabIndex properties of controls to 1,2,3. 1 for UserName, 2 for Password, 3 for Sign In. Anyway thanks again, - When in doubt, push a pawn! -

        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