There are two parts here.
Anonymous methods.
delegate
in C# roughly corresponds to an anonymousSub
in VB here.Adding event handlers.
+=
in C#,AddHandler
in VB.
Putting it together:
AddHandler owner.IsVisibleChanged, _
Sub()
…
End Sub
Incidentally, the AddressOf
operator you’ve mentioned is used in VB to refer to a (non-anonymous) method without calling it. So you would use it here if you would refer to an existing, named method rather than an anonymous method.