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: ...