The event handler receives an argument of type System.EventArgs containing data related to this event.
The CheckedChanged event fires after the button's state specified by the Checked property has been changed.
C# |
checkButton1.CheckedChanged += (s, ea) => {
CheckButton btn = s as CheckButton;
if (btn.Checked) {
}
};
|
VB |
AddHandler CheckButton1.CheckedChanged, Sub(s, ea)
Dim btn As CheckButton = TryCast(s, CheckButton)
If btn.Checked=True Then
End If
End Sub
|