none
ADDING AN ITEM TO THE WINDOWS EXPLORER

    Question

  • Good...
    I tell you my problem.
    I am creating a simple video player with axwindowsmediaplayer1.
    The following code allows me to add an Item to the ContextMenu of the windows explorer.

    Private Sub AddOption_ContextMenu()

                   Dim _key As RegistryKey = Registry.ClassesRoot.OpenSubKey("Folder\Shell", True)

                   Dim newkey As RegistryKey = _key.CreateSubKey("Your Application")

                   Dim subNewkey As RegistryKey = newkey.CreateSubKey("Command")

                   subNewkey.SetValue("", "C:\yourApplication.exe")

                   subNewkey.Close()

                   newkey.Close()

                   _key.Close()

      End Sub

    Now what I want is:
    1) Add to the Item an ICON more.
    2) Also the item is available only for mp4, mp3, wmv files.
    3) Clicking on the item opens my application by playing a file with format already mentioned.

    First of all, Thanks.

    Monday, April 10, 2017 5:05 PM

Answers

All replies