I want an option in the context menu of Windows to open my software when clicked.
To do this i need to create a key in the HKEY_CLASSES_ROOT\*\shell directory
I did some research but couldn't figure out how i can create a key to open up my application
I need the key to be created when the user clicks the "Add to windows context menu" Command button
And i need the key to be removed when the user clicks the "Remove from windows context menu" Command button
Add key to registry
Page 1 of 17 Replies - 484 Views - Last Post: 19 February 2012 - 08:03 PM
Replies To: Add key to registry
#2
Re: Add key to registry
Posted 18 February 2012 - 02:19 AM
#3
Re: Add key to registry
Posted 18 February 2012 - 02:38 AM
nK0de, on 18 February 2012 - 02:19 AM, said:
maybe this might help.
I am writing my program in Visual Basic 2010.So i need a Visual basic compatible code.
The project you specified above is a C# project.
And i need this to happen without the user specifying the location and the name of my program.(It needs to be done automatically)
This post has been edited by Bluezap: 18 February 2012 - 02:43 AM
#4
Re: Add key to registry
Posted 18 February 2012 - 02:44 AM
yes, but you can convert it. The differences between VB.NET and C# syntax is not too big.
#5
Re: Add key to registry
Posted 18 February 2012 - 02:32 PM
Bluezap, on 18 February 2012 - 04:38 AM, said:
And i need this to happen without the user specifying the location and the name of my program.(It needs to be done automatically)
So don't prompt the user for that information, set it yourself. That link shows the concept of adding to a context menu it doesn't mean you can't convert the code (Google C# to VB.Net Converter) and learn from it to get it to perform to your specifications.
#6
Re: Add key to registry
Posted 19 February 2012 - 09:56 AM
CharlieMay, on 18 February 2012 - 02:32 PM, said:
Bluezap, on 18 February 2012 - 04:38 AM, said:
And i need this to happen without the user specifying the location and the name of my program.(It needs to be done automatically)
So don't prompt the user for that information, set it yourself. That link shows the concept of adding to a context menu it doesn't mean you can't convert the code (Google C# to VB.Net Converter) and learn from it to get it to perform to your specifications.
Ok i converted the code successfully and it works perfectly but the problem is that i want that option to be on the context menu at all times no matter where the user right clicks.The option doesn't appear when i right click on the desktop.It only appears when right clicking on a folder.
How do i modify the code so that it will show on all context menus on windows?
This post has been edited by Bluezap: 19 February 2012 - 09:57 AM
#8
Re: Add key to registry
Posted 19 February 2012 - 08:03 PM
iJoris, on 19 February 2012 - 01:51 PM, said:
Take a look at THIS.
I know how to write a key into the registry.I don't know where to write it so that it appears on all context menus on windows.
Can some one please give me a solution to that question?
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|