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. Key Handling

Key Handling

Scheduled Pinned Locked Moved Visual Basic
csshelp
2 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.
  • F Offline
    F Offline
    fazeepk
    wrote on last edited by
    #1

    Hi i have form with some text boxes and grids on it now i want to handle key or shortcuts for save, new etc at one time you have focus in text box or grid is there any way to trapp the keys for whole form instead of writing code in keypress event of every control separately plz help faisal iqbal ch Love The Process Not The Result, Faiz H Sail

    S 1 Reply Last reply
    0
    • F fazeepk

      Hi i have form with some text boxes and grids on it now i want to handle key or shortcuts for save, new etc at one time you have focus in text box or grid is there any way to trapp the keys for whole form instead of writing code in keypress event of every control separately plz help faisal iqbal ch Love The Process Not The Result, Faiz H Sail

      S Offline
      S Offline
      Salman Sheikh
      wrote on last edited by
      #2

      i think you are looking for mnemonics for buttons on your form as you want that when user is typing in some textbox and press a key and automatically a button pressed for this purpose you should change the caption of button in following way &Save for save button now from anywhere on a form if user press Alt + S the button Save is pressed and code for its click event is invoked :)

      Salman Sheikh

      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