I use a webbrowser in my application. My problem is this:

I would like to click a submitbutton in a webpage that I navigated my browser to. When I do this, I need my browser to hide!

this might be way off, but I have been trying things like this.

If browser.document.form(0).enabled=true then
browser.visible = false

Could someone show me how my code should look?