V
v-srkati
I use VS 2008, Infopath 2007 with C#.
The declaration in the manifest:
<xsf:toolbar caption="MyToolbar" name="MyToolbar">
<xsf:button name="Save" caption="Save"></xsf:button>
</xsf:toolbar>
The link to the event in the internal startup:
((ButtonEvent)EventManager.ControlEvents["Save"]).Clicked += new
ClickedEventHandler(Save_Clicked);
the event in my code:
public void Save_Clicked(object sender, ClickedEventArgs e)
{
MessageBox.Show("Hello world");
}
There are no compile time errors, also I am able to publish the
template. But the event handler is never fired.
With Infopath form 2003, the toolbar button click events used to work
perfectly.
Appreciate your help in resolving my issue with infopath 2007.
The declaration in the manifest:
<xsf:toolbar caption="MyToolbar" name="MyToolbar">
<xsf:button name="Save" caption="Save"></xsf:button>
</xsf:toolbar>
The link to the event in the internal startup:
((ButtonEvent)EventManager.ControlEvents["Save"]).Clicked += new
ClickedEventHandler(Save_Clicked);
the event in my code:
public void Save_Clicked(object sender, ClickedEventArgs e)
{
MessageBox.Show("Hello world");
}
There are no compile time errors, also I am able to publish the
template. But the event handler is never fired.
With Infopath form 2003, the toolbar button click events used to work
perfectly.
Appreciate your help in resolving my issue with infopath 2007.