Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Event MyEvent As EventHandler
Private Sub OnMyEvent()
MyEvent(Me, EventArgs.Empty)
End Sub
Public Event MyEvent As EventHandler
Private Sub OnMyEvent()
If Not MyEvent Is Null Then
MyEvent(Me, EventArgs.Empty)
End If
End Sub
Private Sub OnMyEvent()
RaiseEvent MyEvent(Me, EventArgs.Empty)
End Sub
Oh Ok - I assumed you had written it in C# and wanted to rewrite it in VB.Also, I do know VB. It was the C# sharp I was having trouble with... and am still having trouble with ;p
I don't think you would have to check if it is null as it has just been initiated but you just asked for a conversion so I didn't go into the logistics of whether it was needed or not.I'm still not sure why you'd need to check if MyEvent is Nothing.
public ClassName() : base() {
BaseClassEvent += new BaseClassEventHandler(ClassName_BaseClassEvent);