Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
The ButtonEvent class implements the event that is raised when a Button control is clicked on a form. The ButtonEvent class itself is not meant to be manually instantiated in your form code. When you add an event handler for a Button control from the design mode user interface, Microsoft Office InfoPath 2007 generates code in the InternalStartup method of your form code file to bind the event handler to the Clicked event.
For information on how to add event handlers in InfoPath design mode, see How Do I: Add an Event Handler.