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
29
votes
5 answers

How do I hide the CefSharp.WinForms.ChromiumWebBrowser right click context menu?

I'm using CefSharp.WinForms.ChromiumWebBrowser v45 in my project. When I right click into the web browser, the default context menu will show up: But I don't want to show anything. What should I do?
hubpan
  • 291
  • 1
  • 3
  • 3
25
votes
4 answers

Download file with CefSharp WinForms

I'm trying to download some file (image, audio file, or something else) from my app using CefSharp WinForms. I read many other posts, but nothing seems to work. Do you have any sample code that implements the downloader for CefSharp? I tried…
crasholino
  • 727
  • 1
  • 8
  • 13
23
votes
2 answers

cefsharp execute javascript

I want to execute JavaScript code by using CefSharp in Windows Forms, but it does not work. The code is as following, and the message test is not shown. Did I miss something? var browser = new…
Pei-Chun Tsai
  • 233
  • 1
  • 2
  • 6
22
votes
2 answers

Get HTML source code from CefSharp web browser

I am using aCefSharp.Wpf.ChromiumWebBrowser (Version 47.0.3.0) to load a web page. Some point after the page has loaded I want to get the source code. I have called: wb.GetBrowser().MainFrame.GetSourceAsync() however it does not appear to be…
Scott
  • 665
  • 1
  • 5
  • 15
21
votes
6 answers

CefSharp - Could not load file or assembly 'CefSharp.Core.dll' or one of its dependencies

I've been working on a CefSharp WinForms app for a few weeks and I've had no issues with it. This morning, while adding a few things to the application, I tried to run it to test something and got the below error: System.IO.FileNotFoundException…
jardantuan
  • 505
  • 1
  • 4
  • 14
21
votes
11 answers

Could not load file or assembly 'CefSharp.dll' or one of its dependencies

I'm trying to use CefSharp to load my web app into winfoms. I've added 2 dll files: CefSharp.dll and CefSharp.WinForms into references and add 2 dll files icudt.dll and libcef.dll into my project through add existing items. and this is the code…
Kien Dang Ngoc
  • 1,079
  • 5
  • 15
  • 25
20
votes
2 answers

How do you use CefSharp in a WCF Service?

I am trying to use the CefSharp.OffScreen(41.0.0) Nuget Package within a WCF Service Application, and I'm getting the following error while trying to run the service from Visual Studio 2013: Could not load file or assembly…
Galen
  • 499
  • 5
  • 14
19
votes
3 answers

CefSharp LoadHtml

Could someone explain to me how the CefSharp LoadHtml function works? LoadHtml(string html, string url) What do the html and url parameters represent? I am interested in loading a page from a raw HTML string into the CefSharp browser.
G-Man
  • 7,232
  • 18
  • 72
  • 100
16
votes
4 answers

Working with locally built web page in CefSharp

I have a CefSharp browser created in my Winform and I need to dynamically build an HTML page in memory and then have CefSharp render it. Ideally I would like to pass the constructor a string with the HTML in it but it is expecting a URL. The answer…
user461051
  • 411
  • 2
  • 8
  • 16
15
votes
1 answer

How to handle popup links in CefSharp

I am creating a tabbed web browser using CefSharp 39.0.2. Right now, if the user clicks on a link on a website, it will open a new window that has none of my original UI. For example, when you click on an article link on Google News, it opens in a…
AJDev
  • 1,397
  • 4
  • 12
  • 22
15
votes
2 answers

How to save cookies in CefSharp

I'm new to CefSharp. Last week i build my first little program with CefSharp in C#. It's a split screen program. In one split i loaded Tweetdeck. It works fine, but Tweetdeck doesn't store cookies. Every time i start the program, i must login. Is…
NVO
  • 2,566
  • 5
  • 27
  • 57
15
votes
6 answers

Deploying WPF Application with 3rd Party DLLs

I've been extremely frustrated trying to deploy a C#/WPF application I've created that has some references to 3rd party DLLs. I created a folder in the project, called lib, where I placed all of these DLLs. In VS2012, I added the references by…
14
votes
1 answer

Change "Override high DPI scaling behavior" in c#

We have a control inside a WinForm (CefSharp control) that suffers from graphical artifacts when a users screen is set to 125% on windows. Its not just the control, stand alone Chrome does it to an extent. The only way we have been able to fix the…
Mike_G
  • 16,237
  • 14
  • 70
  • 101
12
votes
2 answers

Executing JavaScript on C# with CefSharp WPF causes Error

Whenever I try to execute JavaScript through C# using CefSharp (Stable 57.0), I get an error. I am simply trying to execute the alert function, so I can make sure that works and later test it out with my own function. However, I seem to be getting…
Rafael
  • 727
  • 13
  • 30
12
votes
3 answers

Wait for a page to load with CefSharp

first and foremost I am a novice at C# and learning Cefsharp + javascript as I go so please attempt to comment any solution you feel are necessary, will save me asking stupid questions. I'm attempting to wait until the page has finished loading with…
James D
  • 341
  • 1
  • 3
  • 13
1
2 3
99 100