Custom toolbar button click events are not firing with infopath 2007 - InfoPath Dev
in

InfoPath Dev

Custom toolbar button click events are not firing with infopath 2007

Last post 12-02-2008 02:06 AM by sreedhar. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 12-02-2008 02:06 AM

    Custom toolbar button click events are not firing with infopath 2007

    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. 

     

     

     



     


     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.