T
totoen4
Hi,
I have a form that I want to convert (2003 to 2007) my Infopath form,
but now the button on my custom toolbar doesn't firing.
In this article it's explain how to make custom toolbar in Infopath
2007:
http://msdn.microsoft.com/en-us/library/bb251008.aspx
But nothing is say about how to bind it with the C# code.
When I click on one of my toolbar button nothing is doing (this was
good working before the conversion). Can you help me?
I use VS 2005, Infopath 2007 with C#.
The declaration in the manifest:
<xsf:toolbar caption="AV Toolbar" name="AV_Toolbar">
<xsf:button name="Quit" caption="Abbrechen"></xsf:button>
</xsf:toolbar>
The link to the event in the internal startup:
((ButtonEvent)EventManager.ControlEvents["Quit"]).Clicked += new
ClickedEventHandler(Quit_Clicked);
the event in my code:
public void Quit_Clicked(object sender, ClickedEventArgs e)
{
MessageBox.Show("Hello world");
}
What is wrong ? Could you help me?
Thanks
I have a form that I want to convert (2003 to 2007) my Infopath form,
but now the button on my custom toolbar doesn't firing.
In this article it's explain how to make custom toolbar in Infopath
2007:
http://msdn.microsoft.com/en-us/library/bb251008.aspx
But nothing is say about how to bind it with the C# code.
When I click on one of my toolbar button nothing is doing (this was
good working before the conversion). Can you help me?
I use VS 2005, Infopath 2007 with C#.
The declaration in the manifest:
<xsf:toolbar caption="AV Toolbar" name="AV_Toolbar">
<xsf:button name="Quit" caption="Abbrechen"></xsf:button>
</xsf:toolbar>
The link to the event in the internal startup:
((ButtonEvent)EventManager.ControlEvents["Quit"]).Clicked += new
ClickedEventHandler(Quit_Clicked);
the event in my code:
public void Quit_Clicked(object sender, ClickedEventArgs e)
{
MessageBox.Show("Hello world");
}
What is wrong ? Could you help me?
Thanks