mgr9525 / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Dynamic create WebKitBrowser does not navigate/DocumentComplete! #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a dynamic WebKitBrowser
[code]WebKit.WebKitBrowser webKitBrowser1 = new WebKit.WebKitBrowser();[/code]
2. Attach a DocumentCompleted event handler then navigate
[code]webKitBrowser1.DocumentCompleted += new 
WebBrowserDocumentCompletedEventHandler(webKitBrowser1_DocumentCompleted);
webKitBrowser1.Navigate("http://www.google.com.eg/");[/code]
3. the event does not fire!
[code] void webKitBrowser1_DocumentCompleted(object sender, 
WebBrowserDocumentCompletedEventArgs e)
        {
            // do something...
        }[/code]

What is the expected output? What do you see instead?
The event should fire.

What version of the product are you using? On what operating system?
3.0.1.0023

Please provide any additional information below.
It works only when you add the control using the toolbox.

Original issue reported on code.google.com by Bassem.A...@gmail.com on 18 Feb 2013 at 7:42

GoogleCodeExporter commented 9 years ago
Even if you added it using the toolbox, and made the Visibility to false it 
does not work.

Original comment by Bassem.A...@gmail.com on 18 Feb 2013 at 7:45