Hi,
I create some custom button items in code.
I need to have some code for their Button_Click event and set Button.Checked = Not Button.Checked
So I use this code:
I create some custom button items in code.
I need to have some code for their Button_Click event and set Button.Checked = Not Button.Checked
So I use this code:
Visual Basic:
AddHandler MyAccount1Button.Click, AddressOf SubAccountButtonItem
AddHandler MyAccount2Button.Click, AddressOf SubAccountButtonItem
...
Private Sub SubAccountButtonItem(ByVal sender As Object, ByVal e As System.EventArgs)
'How to set every Button clicked to not to clicked?
'Button.Checked = Not Button.Checked
End Sub
Last edited by a moderator: