I've been here before and i'm still stuck with the same problem. I just can't close the stupid form.
I'm using microsoft's browser control on my aplication. I can open a new form when i click any link. That works great.
The BIG problem is when the javascript:window.close() is called from any page. The browser control closes, but i get stuck with the form it was on. I just can't close it.
Please help me. I've been to all kind of forums and still haven't found a solution.
Thanks.I think it has something to do with this bug. It looks like the WindowClosing event isn't beeing fired.
Can someone translate this into VB.Net.
http://www.codeproject.com/buglist/iefix.asp
Thanks.
I've never used the WebBrowser control, so I can't help there.
However, here is an onlineC# to VB.NET converter. It will convert the code provided in the article you referenced.
Hope this helps.
I got it. Thanks for your post "SomeNewKid2", but i didn't use that code. To confusing.
I was trying to use the windowclosing event and it didn't work. I found out that it work with the leave handler.
Like this:
Private Sub AxWebBrowser1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxWebBrowser1.Leave
Me.Close()
End Sub
This closes the stupid form also.
Stay well.
0 comments:
Post a Comment