ClickedEventArgs.ControlId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of ID property for the Button control that raised the event.
public:
abstract property System::String ^ ControlId { System::String ^ get(); };
public abstract string ControlId { get; }
member this.ControlId : string
Public MustOverride ReadOnly Property ControlId As String
Property Value
The ID of the button control.
Examples
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