• 大小: 30.2MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-16
  • 语言: 其他
  • 标签: CefSharp  

资源简介

CefSharp的一个简单例子,供大家学习。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CefSharp;
using CefSharp.WinForms;

namespace WindowsFormsx86
{
    public partial class Form1 : Form
    {
        //WebView webView;
        public Form1()
        {
            InitializeComponent();
            Cef.Initialize(new CefSettings());
            ChromiumWebBrowser browser = new ChromiumWebBrowser(“https://www.baidu.com“) { Dock = Dockstyle.Fill };
            this.Controls.Add(browser);
            browser.Dock = Dockstyle.Fill;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-06 13:46  WindowsFormsx86\
     目录           0  2016-02-06 13:46  WindowsFormsx86\WindowsFormsx86\
     文件         187  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\App.config
     文件        1402  2016-02-05 19:27  WindowsFormsx86\WindowsFormsx86\Form1.Designer.cs
     文件         717  2016-02-06 13:46  WindowsFormsx86\WindowsFormsx86\Form1.cs
     文件        5817  2016-02-05 19:27  WindowsFormsx86\WindowsFormsx86\Form1.resx
     文件         527  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\Program.cs
     目录           0  2016-02-06 13:46  WindowsFormsx86\WindowsFormsx86\Properties\
     文件        1350  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\Properties\AssemblyInfo.cs
     文件        2882  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\Properties\Resources.Designer.cs
     文件        5612  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\Properties\Resources.resx
     文件        1102  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\Properties\Settings.Designer.cs
     文件         249  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\Properties\Settings.settings
     文件        4230  2016-02-05 19:27  WindowsFormsx86\WindowsFormsx86\WindowsFormsx86.csproj
     目录           0  2016-02-06 13:46  WindowsFormsx86\WindowsFormsx86\bin\
     目录           0  2016-02-06 13:46  WindowsFormsx86\WindowsFormsx86\bin\Debug\
     文件      613888  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.BrowserSubprocess.Core.dll
     文件       11776  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.BrowserSubprocess.exe
     文件      995840  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.Core.dll
     文件       23988  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.Core.xml
     文件       23040  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.WinForms.dll
     文件        4080  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.WinForms.xml
     文件      132608  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.dll
     文件      211046  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\CefSharp.xml
     文件        8192  2016-02-06 13:45  WindowsFormsx86\WindowsFormsx86\bin\Debug\WindowsFormsx86.exe
     文件         187  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\bin\Debug\WindowsFormsx86.exe.config
     文件       24064  2016-02-06 13:45  WindowsFormsx86\WindowsFormsx86\bin\Debug\WindowsFormsx86.pdb
     文件       22984  2016-02-06 13:45  WindowsFormsx86\WindowsFormsx86\bin\Debug\WindowsFormsx86.vshost.exe
     文件         187  2016-02-05 19:25  WindowsFormsx86\WindowsFormsx86\bin\Debug\WindowsFormsx86.vshost.exe.config
     文件         490  2015-03-28 05:35  WindowsFormsx86\WindowsFormsx86\bin\Debug\WindowsFormsx86.vshost.exe.manifest
     文件     2184260  2015-10-23 13:17  WindowsFormsx86\WindowsFormsx86\bin\Debug\cef.pak
............此处省略84个文件信息

评论

共有 条评论