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. Application Shortcut

Application Shortcut

Scheduled Pinned Locked Moved Visual Basic
questioncsharp
5 Posts 4 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.
  • H Offline
    H Offline
    harsh_c
    wrote on last edited by
    #1

    I have created one application in VB.Net. I want to create one shortcut for it like Window key+E (for Explorer). How can i do that?

    J T C 3 Replies Last reply
    0
    • H harsh_c

      I have created one application in VB.Net. I want to create one shortcut for it like Window key+E (for Explorer). How can i do that?

      J Offline
      J Offline
      Jelle Stokroos
      wrote on last edited by
      #2

      I'll need some clarification. Are you looking for a shortcut like from you own desktop or are you looking for how to create a shortcut to your application from within a distribution set? So as to automatically create a shortcut on a users PC desktop when installing your app.

      Jelle

      H 1 Reply Last reply
      0
      • H harsh_c

        I have created one application in VB.Net. I want to create one shortcut for it like Window key+E (for Explorer). How can i do that?

        T Offline
        T Offline
        theScorp
        wrote on last edited by
        #3

        You will need to use Win32 API. here are functions you can use... [DllImport("USER32.dll")] public static extern bool RegisterHotKey(IntPtr hWnd, int id, int fsModifiers, int vlc); [DllImport("USER32.dll")] public static extern bool UnregisterHotKey(IntPtr hWnd, int id);


        "If our Mind can, the Program can !!"

        1 Reply Last reply
        0
        • J Jelle Stokroos

          I'll need some clarification. Are you looking for a shortcut like from you own desktop or are you looking for how to create a shortcut to your application from within a distribution set? So as to automatically create a shortcut on a users PC desktop when installing your app.

          Jelle

          H Offline
          H Offline
          harsh_c
          wrote on last edited by
          #4

          automatically create a shortcut on a users PC desktop when installing app.

          1 Reply Last reply
          0
          • H harsh_c

            I have created one application in VB.Net. I want to create one shortcut for it like Window key+E (for Explorer). How can i do that?

            C Offline
            C Offline
            Craster
            wrote on last edited by
            #5

            Are you going to check whether the user is using that shortcut for something else first? Hijacking users' control over their own machines is not a way to create good will towards your app.

            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