Created
May 23, 2012 17:40
-
-
Save DinisCruz/2776587 to your computer and use it in GitHub Desktop.
First script that loads Chrome inside O2 (via CefSharp)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webView = new WebView("http://www.whatismybrowser.com", new BrowserSettings()); | |
panel.invokeOnThread( | |
()=>{ | |
try | |
{ | |
webView.Dock = DockStyle.Fill; | |
panel.clear().Controls.Add(webView); | |
} | |
catch(Exception ex) | |
{ | |
ex.log(); | |
} | |
}); | |
/*this.sleep(1000); | |
var browserCore = (BrowserCore)webView.field("_browserCore"); | |
return browserCore;*/ | |
return webView; | |
//using CefSharp | |
//using CefSharp.WinForms | |
//O2Ref:C:\_Code_Tests\Dev Tests\CefSharp-0.11-bin\CefSharp.WinForms.dll | |
//O2Ref:C:\_Code_Tests\Dev Tests\CefSharp-0.11-bin\CefSharp.dll | |
//O2Tag_DontAddExtraO2Files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment