Torna al Thread

[CODE] using System; using System.Data; using System.Drawing; using System.Windows.Forms; using Microsoft.VisualStudio.Tools.Applications.Runtime; using Word = Microsoft.Office.Interop.Word; using Office = Microsoft.Office.Core; using System.Collections.Generic; using System.ComponentModel; using System.Text; using Microsoft.Office.Core; namespace WordDocument { public partial class ThisDocument { private CommandBarButton MyButton; private void ThisDocument_Startup(object sender, System.EventArgs e) { MyButton.Click += new Microsoft.Office.Core._CommandBarButtonEvents_ClickEventHandler(MyButton_Click); } public void MyButton_Click(CommandBarButton cmdBarbutton, ref bool cancel) { System.Windows.Forms.MessageBox.Show("Com add-in premuto"); } } } [/CODE]
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5