Tested, and verified - it worked fine!
For future forum members, I simply did this, which stores a local variable containing the Sender (as a WebView) before the Sleep.
Public Sub webContent_LocationChanged (Location As String)
Dim tmpWebView As WebView = Sender
Log("Location changed: " & Location)
Sleep(0)
Log(tmpWebView)
tmpWebView.LoadHtml("<h1>Hello</h1>")
End Sub
sleep() kills the sender. (...) sender is only valid within the sub (see erel's documentation).
Yes, I think it's fairly well known that Sender only is available in the sub, but I can't remember seeing anything about Sleep killing it. You mention Erel's documentation of Sender, but even though I've searched all over I can't seem to find anything that mentions the Sleep-killer. Can you please post a link?