Click here to Skip to main content
15,890,690 members
Home / Discussions / C#
   

C#

 
QuestionAssigning a TextBox object to another TextBox object Pin
GunaChinna4-Mar-07 17:32
GunaChinna4-Mar-07 17:32 
AnswerRe: Assigning a TextBox object to another TextBox object Pin
S. Senthil Kumar4-Mar-07 18:46
S. Senthil Kumar4-Mar-07 18:46 
GeneralRe: Assigning a TextBox object to another TextBox object Pin
GunaChinna4-Mar-07 19:34
GunaChinna4-Mar-07 19:34 
Questionadding an item to context menu Pin
Muhammad Ashraf Nadeem4-Mar-07 17:06
Muhammad Ashraf Nadeem4-Mar-07 17:06 
AnswerRe: adding an item to context menu Pin
Luc Pattyn4-Mar-07 18:41
sitebuilderLuc Pattyn4-Mar-07 18:41 
QuestionRe: adding an item to context menu Pin
Muhammad Ashraf Nadeem4-Mar-07 19:53
Muhammad Ashraf Nadeem4-Mar-07 19:53 
AnswerRe: adding an item to context menu Pin
jjansen5-Mar-07 0:46
jjansen5-Mar-07 0:46 
AnswerRe: adding an item to context menu Pin
Luc Pattyn5-Mar-07 12:30
sitebuilderLuc Pattyn5-Mar-07 12:30 
Hi,

this is how I do it:
- I have my program contain a menu item to install itself as a possible
tool to open all files and folders
- when that menu item is clicked, it creates two registry entries:
HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\myProgName.ContextMenu
(Default)=text to show in context menu
HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\myProgName.ContextMenu\Command
(Default)=myProgPath %1

myProgPath can be obtained as Environment.GetCommandLineArgs()[0]
%1 means append the file/folder selected, and will result in a command line arg

For manipulating the registry, I use P/Invoke to OpenKey, CloseKey, and
RegSetValueEx since I want my code to also work under .NET 1.x;
but starting with 2.0 there are easier ways to do it.

BTW the (Default) key is accessed with name=null.

Smile | :)

Luc Pattyn

[My Articles]

Questionrun through every possiblity [modified] Pin
crash8934-Mar-07 16:48
crash8934-Mar-07 16:48 
AnswerRe: run through every possiblity Pin
DavidNohejl5-Mar-07 0:31
DavidNohejl5-Mar-07 0:31 
GeneralRe: run through every possiblity Pin
crash8935-Mar-07 12:34
crash8935-Mar-07 12:34 
QuestionCustom Control and Passing Events Pin
Expert Coming4-Mar-07 16:09
Expert Coming4-Mar-07 16:09 
AnswerRe: Custom Control and Passing Events Pin
pbraun5-Mar-07 8:21
pbraun5-Mar-07 8:21 
Questionrandom number problem Pin
xp20064-Mar-07 15:34
xp20064-Mar-07 15:34 
AnswerRe: random number problem Pin
Sylvester george4-Mar-07 20:12
Sylvester george4-Mar-07 20:12 
GeneralRe: random number problem Pin
xp20064-Mar-07 20:52
xp20064-Mar-07 20:52 
AnswerRe: random number problem Pin
Rudolf Jan5-Mar-07 0:40
Rudolf Jan5-Mar-07 0:40 
QuestionServer's responce code Pin
Andrey@Ukraine4-Mar-07 14:40
Andrey@Ukraine4-Mar-07 14:40 
QuestionArchitecture and C# Pin
aecordoba4-Mar-07 14:25
aecordoba4-Mar-07 14:25 
AnswerRe: Architecture and C# Pin
DavidNohejl5-Mar-07 0:36
DavidNohejl5-Mar-07 0:36 
AnswerRe: Architecture and C# Pin
DavidNohejl5-Mar-07 1:07
DavidNohejl5-Mar-07 1:07 
GeneralRe: Architecture and C# Pin
aecordoba5-Mar-07 4:50
aecordoba5-Mar-07 4:50 
QuestionCustom Control Properties Issue Pin
Expert Coming4-Mar-07 13:25
Expert Coming4-Mar-07 13:25 
AnswerRe: Custom Control Properties Issue Pin
Expert Coming4-Mar-07 15:43
Expert Coming4-Mar-07 15:43 
QuestionListening for clipboard changes? Pin
sharpiesharpie4-Mar-07 11:44
sharpiesharpie4-Mar-07 11:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.