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. Giving F10 a Job

Giving F10 a Job

Scheduled Pinned Locked Moved C#
questioncareer
4 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.
  • M Offline
    M Offline
    myNameIsRon
    wrote on last edited by
    #1

    Hi, I would like to assign F10 some code, but I notice that F10 activates the Main Menu. Is there a way to stop F10 from doing this? if(e.KeyValue == 121)//F10 { //Do something } Thanks, Ron

    P S 2 Replies Last reply
    0
    • M myNameIsRon

      Hi, I would like to assign F10 some code, but I notice that F10 activates the Main Menu. Is there a way to stop F10 from doing this? if(e.KeyValue == 121)//F10 { //Do something } Thanks, Ron

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      It's generally bad practice to remap the standard function keys and shortcuts. This can end up confusing your users. Imagine if pressing F1 invoked copy instead, and Ctrl+C invoked help - people would soon complain.

      Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world." Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that." Deja View - the feeling that you've seen this post before.

      1 Reply Last reply
      0
      • M myNameIsRon

        Hi, I would like to assign F10 some code, but I notice that F10 activates the Main Menu. Is there a way to stop F10 from doing this? if(e.KeyValue == 121)//F10 { //Do something } Thanks, Ron

        S Offline
        S Offline
        sam
        wrote on last edited by
        #3

        write your code in KeyPress event and after writting your code write e.Handle=true; sameer

        M 1 Reply Last reply
        0
        • S sam

          write your code in KeyPress event and after writting your code write e.Handle=true; sameer

          M Offline
          M Offline
          myNameIsRon
          wrote on last edited by
          #4

          Thanks Sameer! Ron

          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