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. Need Help in context menu

Need Help in context menu

Scheduled Pinned Locked Moved C#
csharpcomhelptutorialquestion
5 Posts 2 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.
  • V Offline
    V Offline
    Venkatesh P
    wrote on last edited by
    #1

    Hi.. I tried the code given in http://www.codeproject.com/csharp/SimpleContextMenu.asp. I wrote the below code in the form_load : string menuCommand = string.Format("\"{0}\" \"%L\"", Application.ExecutablePath); FileShellExtension.Register("jpegfile", "Simple Context Menu", "Context Menu", menuCommand); But i am not getting the context menu. Is this the correct way to provide the code in the form load. How to get the context menu? Please help Thanks & Regards, Venkat

    J 1 Reply Last reply
    0
    • V Venkatesh P

      Hi.. I tried the code given in http://www.codeproject.com/csharp/SimpleContextMenu.asp. I wrote the below code in the form_load : string menuCommand = string.Format("\"{0}\" \"%L\"", Application.ExecutablePath); FileShellExtension.Register("jpegfile", "Simple Context Menu", "Context Menu", menuCommand); But i am not getting the context menu. Is this the correct way to provide the code in the form load. How to get the context menu? Please help Thanks & Regards, Venkat

      J Offline
      J Offline
      JoeRip
      wrote on last edited by
      #2

      Did you download the sample application? Your app needs to contain the Classes described in the article. If you did download the sample application, does IT create the context menu when you run it?

      V 2 Replies Last reply
      0
      • J JoeRip

        Did you download the sample application? Your app needs to contain the Classes described in the article. If you did download the sample application, does IT create the context menu when you run it?

        V Offline
        V Offline
        Venkatesh P
        wrote on last edited by
        #3

        Hi.. I tried the same code. I am getting the message box that the Shell extension was registered. But still i dont get the context menu? please help Thanks & Regards, Venkat

        1 Reply Last reply
        0
        • J JoeRip

          Did you download the sample application? Your app needs to contain the Classes described in the article. If you did download the sample application, does IT create the context menu when you run it?

          V Offline
          V Offline
          Venkatesh P
          wrote on last edited by
          #4

          I am able to register the context menu, but its not getting displayed.. please help Thanks & Regards, Venkat

          V 1 Reply Last reply
          0
          • V Venkatesh P

            I am able to register the context menu, but its not getting displayed.. please help Thanks & Regards, Venkat

            V Offline
            V Offline
            Venkatesh P
            wrote on last edited by
            #5

            Any help...

            Thanks & Regards, Venkat

            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