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]