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. customizing shortcut keys...

customizing shortcut keys...

Scheduled Pinned Locked Moved C#
csharp
3 Posts 3 Posters 1 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.
  • R Offline
    R Offline
    Rohit Dev
    wrote on last edited by
    #1

    hi all, is there anyways by which i can use customized shortcut keys in C#.net2005... normally it comes as a combination of Ctrl, shift or alt keys.... but i want to use text keys as shortcut keys.. not the combination of textkeys with ctrl, alt or shift.... thanks in advance..

    A S 2 Replies Last reply
    0
    • R Rohit Dev

      hi all, is there anyways by which i can use customized shortcut keys in C#.net2005... normally it comes as a combination of Ctrl, shift or alt keys.... but i want to use text keys as shortcut keys.. not the combination of textkeys with ctrl, alt or shift.... thanks in advance..

      A Offline
      A Offline
      Amit Kumar Chikara
      wrote on last edited by
      #2

      You can't do that as sortcut keys are always in the combination of ALT, CTL, Shift keys. Otherwise how do the system will understnad you want to type simple text of it was a sortcut key.

      Regards, Amit Kumar HDISM, PGDCA, MCP, MCAD, MCSD amit_chikara2002@hotmail.com

      1 Reply Last reply
      0
      • R Rohit Dev

        hi all, is there anyways by which i can use customized shortcut keys in C#.net2005... normally it comes as a combination of Ctrl, shift or alt keys.... but i want to use text keys as shortcut keys.. not the combination of textkeys with ctrl, alt or shift.... thanks in advance..

        S Offline
        S Offline
        Stefan Troschuetz
        wrote on last edited by
        #3

        You could enable Form.KeyPreview, register to any of the keyboard events e.g. Form.KeyDown. Then inside the event handler check for your custom shortcut keys and do whatever you want if one of them occurs.


        "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

        www.troschuetz.de

        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