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. Visual Basic
  4. hit enter key

hit enter key

Scheduled Pinned Locked Moved Visual Basic
tutorial
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.
  • B Offline
    B Offline
    bony_baba
    wrote on last edited by
    #1

    Hi I am working on vb 6.0, I have a textbox on my form and i want to do something when user write something and hit enter key, So please anybody tell me how to track this thing Thanks

    R 1 Reply Last reply
    0
    • B bony_baba

      Hi I am working on vb 6.0, I have a textbox on my form and i want to do something when user write something and hit enter key, So please anybody tell me how to track this thing Thanks

      R Offline
      R Offline
      Rizwan Bashir
      wrote on last edited by
      #2

      in keypress event of the textbox .... ' I dont remember in vb6 which parameter come in the procedure. so check the parameter and replace e.keycode with that if e.keycode=vbenter then do something here end if Rizwan Bashir

      B 1 Reply Last reply
      0
      • R Rizwan Bashir

        in keypress event of the textbox .... ' I dont remember in vb6 which parameter come in the procedure. so check the parameter and replace e.keycode with that if e.keycode=vbenter then do something here end if Rizwan Bashir

        B Offline
        B Offline
        bony_baba
        wrote on last edited by
        #3

        Thanks i got the solution Actually in vb we do it by onkeypress event in which we can know whether the enter key is pressed or not by the value of enter key ascii value which is 13. ok Thanks

        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