ClickedEventArgs.ControlId Property (Microsoft.Office.InfoPath)
Gets the value of ID property for the Button control that raised the event.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property ControlId As String
'Usage
Dim instance As ClickedEventArgs
Dim value As String
value = instance.ControlId
public abstract string ControlId { get; }
Property Value
The ID of the button control.
Example
In the following example, the ControlId property is used to display the ID property value (MyButton) for the Button control.
public void MyButton_Clicked(object sender, ClickedEventArgs e)
{
MessageBox.Show(e.ControlId);
}
Public Sub MyButton_Clicked(ByVal sender As Object, _
ByVal e As ClickedEventArgs)
MessageBox.Show(e.ControlId)
End Sub
See Also
Reference
ClickedEventArgs Class
ClickedEventArgs Members
Microsoft.Office.InfoPath Namespace