I am trying to control when a event is firing and having some issus. This is what I tried ,following the documentation on MSD
Can anybody see the error here?
BC30677 Visual Basic or statement event operand must be a dot-qualified expression or a simple name.
Public Class Formx
Public Sub test()
Dim Objectfx As New Formx()
RemoveHandler Objectfx.Button2_Click(), AddressOf Button2_Click
End Sub
end Class