how to get rid of security message box from gecko webbrowser

688 Views Asked by At

I'm using gecko webbrowser control in my winforms app, it's belonging to firefox browser.

When I navigate to www.facebook.com I get this messagebox immediately :

Security Warning that I get

it's really annoying , I tried to press enter by code when my webbrowser loses focus but it doesn't work.. how to get rid of it ?

1

There are 1 best solutions below

2
On BEST ANSWER
Application.OpenForms[1].Close();