Export (0) Print
Expand All

ControlEvents.Item Property (Microsoft.Office.InfoPath)

Gets the Clicked event associated with a Button control from the ControlEvents collection.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

public abstract Object this [
	string controlId
] { get; }

Parameters

controlId

The ID of the Button control associated with the Clicked event.

Property Value

The Clicked event associated with the specified Button control.

ImportantImportant:

The code to bind event handlers using the ControlEvents class is not meant to be written by the developer in form code. When you add an event handler for a Button control to your form template from the design mode user interface, InfoPath generates code in the InternalStartup method of your form code file using the EventManager class and the ControlEvents class to bind the Clicked events raised by Button controls to their event handlers. You should not create the InternalStartup method or write any additional code within it yourself. For information about how to add event handlers using interface commands, see How to: Add an Event Handler.

Community Additions

ADD
Show:
© 2015 Microsoft