私はsdfデータベースファイルのコンテキストメニューを拡張します。 私の電流源レジストリ - .sdfファイルのContextMenu拡張
public static void Create()
{
string keyName = ".sdf";
string contextName = "Das ist ein SDF Test";
string exe = @"C:\Users\........exe";
bool isWritable = true;
try
{
RegistryKey classesRoot = Registry.ClassesRoot;
RegistryKey parentKey = classesRoot.OpenSubKey(keyName, isWritable);
parentKey.CreateSubKey("shell");
RegistryKey shell = parentKey.OpenSubKey("shell", isWritable);
RegistryKey context = shell.CreateSubKey(contextName);
RegistryKey command = context.CreateSubKey("command");
command.SetValue("", exe);
classesRoot.Flush();
classesRoot.Close();
}
catch (Exception)
{
throw;
}
}
は今、私はコンテキストメニューの何も起こっていない開いたときに... うまくいかないでしょうか?
私はそれのようなものが必要であり、実際には以下の問題の解決方法を理解していません。あなたは働く機能を提供できますか?ありがとうございました – Jerome