Windows right c. menu //help
How to add application to right click c. menu
(Menu that pops up when you right click on desktop)
I know how to make that thing when you left click on folder, but that doesn't help me.
Here's code (R CLICK ON FOLDER):
Code:
Dim argArray() As String = New String() {"-%1", "-arg2", "-arg3"}
Private Function doAddToList(ByVal itemName As String, ByVal itemPath As String, ByVal itemArgs() As String)
Dim regkey : regkey = CreateObject("wscript.shell") : Dim keyValue = Chr(34) & itemPath & Chr(34)
If Not itemArgs.Length < 1 Then
For i = 0 To itemArgs.Length - 1
keyValue &= itemArgs(i)
Next
End If
Try
regkey.regwrite("HKEY_CLASSES_ROOT\*\shell\" & itemName & "\command\", keyValue, "REG_SZ")
Catch
Return False
End Try
Return True
End Function
Now, can sum1 give me code that the menu will appear w/o clicking on folder.
Explaination:
That's menu where i want my app to be displayed:

This is what i have done with the code:

thx!
@Blubb1337
@Jason
@NextGen1
@Hassan
Question no.2:
How to prevent closing of form and instead of closing hide...?
i putted me.hide under formclosing but didn't work