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. Adding my app's link to Desktop Context Menu

Adding my app's link to Desktop Context Menu

Scheduled Pinned Locked Moved Visual Basic
questionwindows-adminhelp
12 Posts 5 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.
  • S Sumit Prakash Sharma

    When you right click on the desktop you get a context menu that has something like that: ----------------------- Arrange Icons By Refresh ----------------------- Paste Paste Shortcut ----------------------- New ----------------------- Properties ----------------------- I need to add a link to my application on Desktop's context menu. How can I accomplish that? What registry key do I need to modify/add to get my app icon listed on the desktop context menu? E.g.: --------------------------- Arrange Icons By > Refresh --------------------------- My App Link > Paste Paste Shortcut --------------------------- New --------------------------- Properties --------------------------- Please help. Thanks.

    D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #3

    You posted the exact same question 4 hours ago. Don't. What you're doing is considered very rude and will only get you ignored. We don't get paid to answer everyones questions. We do this on a volunteer basis, when we can, for as long as we can. Myself, I just woke up 30 minutes ago. Sorry if I wanted to get some breakfast before diving into your question.

    A guide to posting questions on CodeProject[^]
    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
         2006, 2007, 2008

    C 1 Reply Last reply
    0
    • D Dave Kreskowiak

      You posted the exact same question 4 hours ago. Don't. What you're doing is considered very rude and will only get you ignored. We don't get paid to answer everyones questions. We do this on a volunteer basis, when we can, for as long as we can. Myself, I just woke up 30 minutes ago. Sorry if I wanted to get some breakfast before diving into your question.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #4

      Dave Kreskowiak wrote:

      I just woke up 30 minutes ago

      Good Morning to you. :) I don't know why you can't answer questions when you are asleep. I do some of my best work whilst asleep.

      *Developer Day Scotland - Free community conference Delegate Registration Open

      J D 2 Replies Last reply
      0
      • C Colin Angus Mackay

        Dave Kreskowiak wrote:

        I just woke up 30 minutes ago

        Good Morning to you. :) I don't know why you can't answer questions when you are asleep. I do some of my best work whilst asleep.

        *Developer Day Scotland - Free community conference Delegate Registration Open

        J Offline
        J Offline
        Jon_Boy
        wrote on last edited by
        #5

        Now if only you could telepathically port your dream code into actual code......

        Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

        S 1 Reply Last reply
        0
        • C Colin Angus Mackay

          Dave Kreskowiak wrote:

          I just woke up 30 minutes ago

          Good Morning to you. :) I don't know why you can't answer questions when you are asleep. I do some of my best work whilst asleep.

          *Developer Day Scotland - Free community conference Delegate Registration Open

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #6

          Ahhh...Breakfast was good! I get today off, so I slept in! :thumbsup: Now, where were we?? :-D On yeah! Context menus and some guy who cross posts! Here's an example for you import using RegEdit to add Notepad to the context menu:

          Windows Registry Editor Version 5.00

          [HKEY_CLASSES_ROOT\*\shell]

          [HKEY_CLASSES_ROOT\*\shell\Notepad]

          [HKEY_CLASSES_ROOT\*\shell\Notepad\command]
          @="\"C:\\Windows\\Notepad.exe\" \"%1\""

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          J S 3 Replies Last reply
          0
          • D Dave Kreskowiak

            Ahhh...Breakfast was good! I get today off, so I slept in! :thumbsup: Now, where were we?? :-D On yeah! Context menus and some guy who cross posts! Here's an example for you import using RegEdit to add Notepad to the context menu:

            Windows Registry Editor Version 5.00

            [HKEY_CLASSES_ROOT\*\shell]

            [HKEY_CLASSES_ROOT\*\shell\Notepad]

            [HKEY_CLASSES_ROOT\*\shell\Notepad\command]
            @="\"C:\\Windows\\Notepad.exe\" \"%1\""

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008

            J Offline
            J Offline
            Jon_Boy
            wrote on last edited by
            #7

            Glad you got to start the day off right and I'm totally jealous of you getting the day off!

            Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

            1 Reply Last reply
            0
            • J Jon_Boy

              Now if only you could telepathically port your dream code into actual code......

              Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

              S Offline
              S Offline
              Steven J Jowett
              wrote on last edited by
              #8

              All my coding works like a dream :cool: (Well, in my dreams anyway)

              Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                Ahhh...Breakfast was good! I get today off, so I slept in! :thumbsup: Now, where were we?? :-D On yeah! Context menus and some guy who cross posts! Here's an example for you import using RegEdit to add Notepad to the context menu:

                Windows Registry Editor Version 5.00

                [HKEY_CLASSES_ROOT\*\shell]

                [HKEY_CLASSES_ROOT\*\shell\Notepad]

                [HKEY_CLASSES_ROOT\*\shell\Notepad\command]
                @="\"C:\\Windows\\Notepad.exe\" \"%1\""

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                S Offline
                S Offline
                Sumit Prakash Sharma
                wrote on last edited by
                #9

                Sorry it is not working properly please provide me step by step solution. Thanks

                D 1 Reply Last reply
                0
                • S Sumit Prakash Sharma

                  Sorry it is not working properly please provide me step by step solution. Thanks

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #10

                  OK, you save the sample I gave you as a .REG file. Just copy'n'paste it into Notepad to do that. Then you edit the registry data to provide the correct command line to launch your app, and write it in the correct format, escaping the proper characters as you go, then save it. Then you double-click that file so RegEdit will import it.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    Ahhh...Breakfast was good! I get today off, so I slept in! :thumbsup: Now, where were we?? :-D On yeah! Context menus and some guy who cross posts! Here's an example for you import using RegEdit to add Notepad to the context menu:

                    Windows Registry Editor Version 5.00

                    [HKEY_CLASSES_ROOT\*\shell]

                    [HKEY_CLASSES_ROOT\*\shell\Notepad]

                    [HKEY_CLASSES_ROOT\*\shell\Notepad\command]
                    @="\"C:\\Windows\\Notepad.exe\" \"%1\""

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007, 2008

                    S Offline
                    S Offline
                    Sumit Prakash Sharma
                    wrote on last edited by
                    #11

                    It's too long span plz provide me your answer

                    D 1 Reply Last reply
                    0
                    • S Sumit Prakash Sharma

                      It's too long span plz provide me your answer

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #12

                      Uhhh...you realize this was over 2 years ago, correct?? I gave you everything you need to come up with your own solution. All it took was a tiny bit of effort on your part. No, I'm not coding this for you.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak

                      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