Use
AddHandler
to add event handlers in VB.NET;
Dim anim As DoubleAnimation = New DoubleAnimation
Private Sub MySub()
Dim anim As DoubleAnimation = New DoubleAnimation
AddHandler anim.Completed, Sub(s, e) Me.Close()
AddHandler anim.Completed, AddressOf MyEventHandlingFunction
End Sub
Private Sub MyEventHandlingFunction()
Me.Close()
End Sub
Hope this helps,
Fredrik