Questions tagged [cefsharp]

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework

CefSharp is an open-source project which provides WPF and WinForms web browser control implementations to embed Chromium in .NET application. It can be used from C# or VB, or any other CLR language.

This tag can be used as an alternative and/or complement to the Google Group for the project.

1702 questions
12
votes
2 answers

Are there any samples of using CefGlue or CefSharp in a windows forms application with minimum setup?

I am (still) using Visual Studio 2005 and wanting to embed a webkit browser within a c# winforms application, preferably as a winforms control. I am looking for a simple example of either CefGlue or CefSharp to get started with, along with the…
Nigel
  • 247
  • 1
  • 3
  • 12
11
votes
2 answers

CefSharp vs WebView2

I'm considering moving a project from cef (CefSharp) to WebView2 WPF. My preliminary tests shows that WebView2 API have the interface I need for this port. I am afraid that I can miss something that can prevent me from switching to WebView2 and I'll…
ekalchev
  • 762
  • 7
  • 24
11
votes
3 answers

chromium - send custom header info on initial page load c#

Or How to inject a custom header into the initial request to a site when new-ing up an instance of the ChromiumWebBrowser. I'm a noob with Chromium and could really use some help. I have a winforms app with a CEF window. K, no prob so far. What I…
JackJack
  • 111
  • 1
  • 1
  • 6
11
votes
3 answers

Call .Net from javascript in CefSharp 1 - wpf

I'm just learning C# WPF and has been successfully implemented CefSharp, how to call .NET function from javascript, that is loaded in CefSharp?
user3595714
  • 143
  • 1
  • 1
  • 4
10
votes
2 answers

Cefsharp clearing cache,cookies and browser data in wpf

I am developing an app on a banking device that uses cefsharp browser as a part of it. Cause this app will be used by anyone it should not save any data from previous user that the next user can see. I want to clear all cached browser data after…
Shervin Rafiee
  • 373
  • 2
  • 3
  • 11
10
votes
2 answers

CefSharp Inject Javascript prior to any document load/processing

For a project I am working on I need to inject javascript prior to any of the webpage document processing begins. This can easily be achieved via the WebBrowser component, but I am encountering difficulty using CefSharp. Here is a simplification of…
Glorifundel
  • 746
  • 1
  • 8
  • 16
10
votes
5 answers

CefSharp - Get Value of HTML Element

How can I get the value of an HTML element with CefSharp? I know how to do with this default WebBrowser Control: Dim Elem As HtmlElement = WebBrowser1.Document.GetElementByID("id") But I didn't find anything similar for CefSharp. The main reason I…
Ravi Kiran
  • 565
  • 1
  • 8
  • 22
10
votes
3 answers

How to bypass SSL error CefSharp WinForms

I'm using CefSharp.WinForms to develop an application. When any SSL certificate error occurs, it won't display the web page. How can I bypass SSL certificate error and display the web page?
Ashish Rathore
  • 2,546
  • 9
  • 55
  • 91
10
votes
2 answers

Using CefSharp.Offscreen to retrieve a web page that requires Javascript to render

I have what is hopefully a simple task, but it's going to take someone that's versed in CefSharp to solve it. I have an url that I want to retrieve the HTML from. The problem is this particular url doesn't actually distribute the page on a GET. …
Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
9
votes
1 answer

Send POST data to URL with CefSharp C#

Im trying to work out how to send post data directly to a url with cefsharp. Here is an example of what I want to send: var values = new Dictionary { { "thing1", "hello" }, { "thing2", "world" } }; FormUrlEncodedContent…
jLynx
  • 1,111
  • 3
  • 20
  • 36
9
votes
5 answers

The name ChromiumWebBrowser does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"

I had followed this link to implement CefSharp applicaton. But I have stuck while coding MainWindow.xaml. Blend for VS 2015 said, The name ChromiumWebBrowser does not exist in the namespace "clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf" But…
Minkyu Kim
  • 1,144
  • 3
  • 18
  • 43
9
votes
1 answer

cefsharp and previewkeydown event not working

This might be a simple question, but I have a winforms app that is loading a ChromiumWebBrowser control (CefSharp) and I can't figure out how to capture key preview events as they are all being swallowed by the control. The standard attaching a…
Jared Wilkin
  • 231
  • 3
  • 12
8
votes
3 answers

How to include VC++ Redistributable Files Needed by CEFSharp

Building an application using the CEFSharp browser, works fine on my machine, but crashes on the server with the following error: System.IO.FileLoadException: A procedure imported by 'CefSharp.Core.dll' could not be loaded. I’ve seen this problem…
Jayden67
  • 173
  • 3
  • 11
8
votes
1 answer

DotNetBrowser vs CefSharp Comparison

I'm considering moving a project into an embedded WebView type architecture in a WinForm application and am considering DotNetBrowser and CefSharp. After many searches I can't seem to find any comparison between the capabilities of the free CefSharp…
frigon
  • 4,979
  • 7
  • 32
  • 38
8
votes
3 answers

Cefsharp how to get current URL address? c#

I want to get the current address and basically put it in a textbox. I found this link but can't seem to understand anything. http://cefsharp.github.io/api/57.0.0/html/P_CefSharp_WinForms_ChromiumWebBrowser_Address.htm I would really appreciate a…
CsgoTalks Com
  • 151
  • 1
  • 1
  • 10