Randy Cleary
Randy Cleary

Reputation: 725

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

Okay, 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?

Upvotes: 0

Views: 783

Answers (1)

Randy Cleary
Randy Cleary

Reputation: 725

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.

Upvotes: 2

Related Questions