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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Windows Right Click Menu

Windows Right Click Menu

Scheduled Pinned Locked Moved C#
question
7 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.
  • I Offline
    I Offline
    Ian Uy
    wrote on last edited by
    #1

    Good Day Sir/Maam, I know my subject is so confusing, sorry. I'll explain a bit more clear. If you have winzip or winrar installed on your computer, there will be a menu named "Add to filename.zip" or "Add to filename.rar" when you right click a file. I want to implement this feature in my project (I am asked by my professor to create a file encrypter application). So I want to have a "Encrypt this File" menu in the "right click" menu. For starter, if I click the "Encrypt this File", I want the file path of the file to pop up on the message box of my program. How can I go about with this? Sorry if I my english is really bad. Thank you in advance.

    A B 2 Replies Last reply
    0
    • I Ian Uy

      Good Day Sir/Maam, I know my subject is so confusing, sorry. I'll explain a bit more clear. If you have winzip or winrar installed on your computer, there will be a menu named "Add to filename.zip" or "Add to filename.rar" when you right click a file. I want to implement this feature in my project (I am asked by my professor to create a file encrypter application). So I want to have a "Encrypt this File" menu in the "right click" menu. For starter, if I click the "Encrypt this File", I want the file path of the file to pop up on the message box of my program. How can I go about with this? Sorry if I my english is really bad. Thank you in advance.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      You have to work with windows registry !!!

      Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"

      I 1 Reply Last reply
      0
      • A Abhijit Jana

        You have to work with windows registry !!!

        Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"

        I Offline
        I Offline
        Ian Uy
        wrote on last edited by
        #3

        Good Day Abhijit, I am aware of that fact. ;) I just read this CP article -> http://www.codeproject.com/csharp/appendmenu.asp However, there is no instruction on how to add an icon for the context menu. Do you have any idea on how to put an icon on the left of the context menu?

        V 1 Reply Last reply
        0
        • I Ian Uy

          Good Day Abhijit, I am aware of that fact. ;) I just read this CP article -> http://www.codeproject.com/csharp/appendmenu.asp However, there is no instruction on how to add an icon for the context menu. Do you have any idea on how to put an icon on the left of the context menu?

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          Would Shell Extensions help you? http://msdn.microsoft.com/msdnmag/issues/04/01/WindowsShell/default.aspx[^]

          Vasudevan Deepak Kumar Personal Homepage
          Tech Gossips
          Regional Weblog (in Tamil) :: Voicing for the Society
          Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

          I 1 Reply Last reply
          0
          • V Vasudevan Deepak Kumar

            Would Shell Extensions help you? http://msdn.microsoft.com/msdnmag/issues/04/01/WindowsShell/default.aspx[^]

            Vasudevan Deepak Kumar Personal Homepage
            Tech Gossips
            Regional Weblog (in Tamil) :: Voicing for the Society
            Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

            I Offline
            I Offline
            Ian Uy
            wrote on last edited by
            #5

            Thanks for the reply. I have been reading http://www.codeproject.com/csharp/SimpleContextMenu.asp but can't find a way to apply the command to all files (*.*), the instruction there was file type specific. In my case, I want to allow the user to right click any file type and be able to "encrypt" it. Thank you! -- modified at 2:49 Wednesday 14th November, 2007

            1 Reply Last reply
            0
            • I Ian Uy

              Good Day Sir/Maam, I know my subject is so confusing, sorry. I'll explain a bit more clear. If you have winzip or winrar installed on your computer, there will be a menu named "Add to filename.zip" or "Add to filename.rar" when you right click a file. I want to implement this feature in my project (I am asked by my professor to create a file encrypter application). So I want to have a "Encrypt this File" menu in the "right click" menu. For starter, if I click the "Encrypt this File", I want the file path of the file to pop up on the message box of my program. How can I go about with this? Sorry if I my english is really bad. Thank you in advance.

              B Offline
              B Offline
              Bino B
              wrote on last edited by
              #6

              If u get an answer for this pls inform me,im also interested in this pls mail me seanarcher25@gmail.com

              Cheers Bino www.codepal.co.nr

              I 1 Reply Last reply
              0
              • B Bino B

                If u get an answer for this pls inform me,im also interested in this pls mail me seanarcher25@gmail.com

                Cheers Bino www.codepal.co.nr

                I Offline
                I Offline
                Ian Uy
                wrote on last edited by
                #7

                http://www.codeproject.com/csharp/SimpleContextMenu.asp[^] Process Narrative for ALL FILES/FOLDERS: 1. [HKEY_CLASSES_ROOT\*\shell] -> Create Shell Key Under \*\ 2. [HKEY_CLASSES_ROOT\*\shell\opennotepad] -> Add Context Menu @="Open with Notepad" 3. [HKEY_CLASSES_ROOT\*\shell\opennotepad\command] -> Specify Command @="C:\\WINDOWS\\system32\\NOTEPAD.EXE %1"

                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