This method of the WebBrowser class retrieves the handle to the Microsoft® Internet Explorer main window.
public synchronized int getHWND();