开发者

Can I close a Windows Form from a link in a WebBrowser control?

开发者 https://www.devze.com 2022-12-25 16:14 出处:网络
Okay, 开发者_JAVA技巧I have a WebBrowser control in my VB.NET application that loads a PHP page inside it. On the PHP page I have a \'Log Out\' hyperlink. What I\'m trying to do is close the VB.NET fo

Okay, 开发者_JAVA技巧I have a WebBrowser control in my VB.NET application that loads a PHP page inside it. On the PHP page I have a 'Log Out' hyperlink. What I'm trying to do is close the VB.NET form when that hyperlink is clicked. Can anyone tell me how to accomplish this - assuming it's even possible?


Okay, I figured this one out. I just had the browser control check the URL after it loaded the login page and forced it to close the form that way.

0

精彩评论

暂无评论...
验证码 换一张
取 消