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. How to add the runtime shortcut keys in application

How to add the runtime shortcut keys in application

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
2 Posts 1 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.
  • L Offline
    L Offline
    Laxman9
    wrote on last edited by
    #1

    hi, how can i add the user shortcut keys at runtime in the applicaion FAILURE is the first step towards SUCCESS

    L 1 Reply Last reply
    0
    • L Laxman9

      hi, how can i add the user shortcut keys at runtime in the applicaion FAILURE is the first step towards SUCCESS

      L Offline
      L Offline
      Laxman9
      wrote on last edited by
      #2

      try the following code....:) ' Appends a shortcut key to the caption of a menu item. Public Sub AddMenuShortcut(Menu As Menu, Shortcut As String) Menu.Caption = Menu.Caption & vbTab & Shortcut End Sub This code fragment adds shortcut keys to commands on the Edit menu: Private Sub Form_Load() AddMenuShortcut mnuEditUndo, "Ctrl+Z" AddMenuShortcut mnuEditCut, "Ctrl+X" AddMenuShortcut mnuEditCopy, "Ctrl+C" AddMenuShortcut mnuEditPaste, "Ctrl+V" AddMenuShortcut mnuEditDelete, "Del" End Sub FAILURE is the first step towards SUCCESS

      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