private void FormChrome_Load(object sender, EventArgs e) { myChrome = new uChrome(); panel1.Controls.Add(myChrome.uBrowser); loadUrl(); this.WindowState = FormWindowState.Maximized; this.Activate(); }
public static cefS.JavascriptResponse uJsExec(uChrome agrBrowser, string argJs) { List <long> frameIdList = agrBrowser.uBrowser.GetBrowser().GetFrameIdentifiers(); cefS.IFrame frame = agrBrowser.uBrowser.GetBrowser().GetFrame(frameIdList.First()); var t = frame.EvaluateScriptAsync(argJs); t.Wait(); return(t.Result); }