In C# I can check whether an event instance is nothing or not
public event SomeEvent SomeClickEvent;
if (SomeClickEvent != null)
{
}
But when I do this in VB it returns an error message
Public Event SomeClickEvent As SomeEvent
If Not SomeClickEvent Is Nothing Then
End If
Error Message: Public Event SomeClickEvent is an event, and cannot be called
directly. Use an RaiseEvent statement to raise an event.
Hope some one can give insights into this.