예제 #1
0
 private void FormChrome_Load(object sender, EventArgs e)
 {
     myChrome = new uChrome();
     panel1.Controls.Add(myChrome.uBrowser);
     loadUrl();
     this.WindowState = FormWindowState.Maximized;
     this.Activate();
 }
예제 #2
0
        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);
        }