public void BrowserAttach() { MyBrowser browser = AppContext.Current.Browser as MyBrowser; htmlTree.Attach(browser); browser.DocumentFullComplete -= new EventHandler(Reload); browser.DocumentFullComplete += new EventHandler(Reload); }