Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何创建Microsoft(MS)Access加载项_C#_.net_Ms Access_Ms Office_Add In - Fatal编程技术网

C# 如何创建Microsoft(MS)Access加载项

C# 如何创建Microsoft(MS)Access加载项,c#,.net,ms-access,ms-office,add-in,C#,.net,Ms Access,Ms Office,Add In,我已经在VisualStudio中创建了一个Ms access加载项 我使用这两种方法来实现我的逻辑,但当我构建设置时,它会打开MsAccess,但我在代码中放置的断点不会命中 private void ThisAddIn_Startup(object sender, System.EventArgs e) { File.Create(@"D:\AddIn.txt"); MessageBox.Show(&quo

我已经在VisualStudio中创建了一个Ms access加载项

我使用这两种方法来实现我的逻辑,但当我构建设置时,它会打开MsAccess,但我在代码中放置的断点不会命中

 private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            File.Create(@"D:\AddIn.txt");
            MessageBox.Show("Start");
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
是否有创建和使用Ms Access加载项的完整指南。 谢谢

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\Access\Addins\MyAddIn]

"Description"="MSAccessAddIn"

"FriendlyName"="MsAccessAddIn"

"LoadBehavior"=dword:00000003

"Manifest"="C:\\Temp\\MsAccessAddIn\\bin\\Debug\\MyAddIn.vsto|vstolocal"