Create a call Back to button control in Ribbon
-
Hello all, I want to create an Word add-In in Visual studio. I used word Add-In feature for the same, Now i added the ribbon file to it which has a new tab and a button control. I would like to show message on click of this button control. I read the full article about this in MSDN, and did following steps: Exported the ribbon to xml Wrote the OnAction attribute to the button control in xml But still it's not working. I wrote the following code in Ribbon1.cs:
private void button1_Click(object sender, RibbonControlEventArgs e)
{
MessageBox.Show("Hello");
}Tell me how to call this method ? how to write the same in Ribbon call Back region......??? :^)
-
Hello all, I want to create an Word add-In in Visual studio. I used word Add-In feature for the same, Now i added the ribbon file to it which has a new tab and a button control. I would like to show message on click of this button control. I read the full article about this in MSDN, and did following steps: Exported the ribbon to xml Wrote the OnAction attribute to the button control in xml But still it's not working. I wrote the following code in Ribbon1.cs:
private void button1_Click(object sender, RibbonControlEventArgs e)
{
MessageBox.Show("Hello");
}Tell me how to call this method ? how to write the same in Ribbon call Back region......??? :^)