Compartir a través de


ButtonEvent Class

Implements the event associated with a Button control on a form.

Inheritance Hierarchy

System.Object
  Microsoft.Office.InfoPath.ButtonEvent

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

Syntax

'Declaration
Public MustInherit Class ButtonEvent
'Usage
Dim instance As ButtonEvent
public abstract class ButtonEvent

Remarks

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 InfoPath 2010 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 to: Add an Event Handler.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ButtonEvent Members

Microsoft.Office.InfoPath Namespace