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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Doubt on Textbox Control !!!!!

Doubt on Textbox Control !!!!!

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdesignhelp
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
    Suave_Shiva
    wrote on last edited by
    #1

    Am Developing an windows application in .NET 2.0 Framework. The scenario is like, In User interface, We have textbox's for username & another for password. The user will enter username & then he press enter key, after pressing enter key the cursor must come to password textbox, can any please solve the problem. Am unable 2 study abt the ENTER key, generally V can have through by pressing tab key, but client request is only throught enter key...... Thank you in advance... Hope u people will b solving it... :rolleyes:

    S 1 Reply Last reply
    0
    • S Suave_Shiva

      Am Developing an windows application in .NET 2.0 Framework. The scenario is like, In User interface, We have textbox's for username & another for password. The user will enter username & then he press enter key, after pressing enter key the cursor must come to password textbox, can any please solve the problem. Am unable 2 study abt the ENTER key, generally V can have through by pressing tab key, but client request is only throught enter key...... Thank you in advance... Hope u people will b solving it... :rolleyes:

      S Offline
      S Offline
      Simon P Stevens
      wrote on last edited by
      #2

      You need to handle the keydown or keypressed event on the text box. In this event handler, you can check what key was pressed. If the enter key was pressed, you can set focus to the next control by calling .Focus() on the control.

      Simon

      T 1 Reply Last reply
      0
      • S Simon P Stevens

        You need to handle the keydown or keypressed event on the text box. In this event handler, you can check what key was pressed. If the enter key was pressed, you can set focus to the next control by calling .Focus() on the control.

        Simon

        T Offline
        T Offline
        TJS4u
        wrote on last edited by
        #3

        look for the key pressed is e.keycode==13 .... for enter key then txtpassword.focus() thanks Tony

        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