Привет Следующий код дает мне ошибку, которую я не очень уверен, как исправить.Может кто-нибудь помочь, пожалуйста?
Код:
Public Event hw As EventHandler
Private Sub view_hw(sender As Object, eventArgs As Object)
If hw IsNot Nothing Then
hw.Invoke(Me, New EventArgs())
End If
End Sub
Ошибка:
Error 1 'Public Event hw(sender As Object, e As System.EventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.