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
8
votes
3 answers

CefSharp 3 and SetZoomLevel

I am creating many ChromiumWebBrowser-Instances programmatically inside my app. On some time later I set the visibility and an address for the browser. Also I wanted to change the zoom-level. But whenever I try to change it in the normal way (like…
Marcel Grüger
  • 885
  • 1
  • 9
  • 25
8
votes
1 answer

How to implement keyboard handler cefSharp for shortcut keys

I've building a windows app for browsing web pages using cefSharp. I need to implement some short cut keys into that application, can any one tell me how can i achieve this functionality. Ex. ctrl + tab = move to next tab I'm able to track if user…
Ashish Rathore
  • 2,546
  • 9
  • 55
  • 91
8
votes
5 answers

How to open a link in a native browser from CefSharp 3

I have a requirement to open a link in a native browser from CefSharp 3. I need to run the whole application in CefSharp 3's chromium browser except a form. when I click the form's link button (Eg - Register button. It has a link to the…
Ahamed Salik
  • 313
  • 2
  • 4
  • 18
8
votes
1 answer

Disable Chrome paste menu on text inputs while on a touch screen

How to disable this annoying contextmenu in chrome while on a touch screen. This pops up on selection/on long tap of any input while i have some text copied. Am developing an app using CEFSharp (Chromium Embedded Framework) and its going to be…
8
votes
4 answers

CefSharp WPF web browser is not displayed Or rendered

Am new to CefSharp I have created a class library project and referenced the CefSharp library to render the Web browser, However I am facing some issues showing the web Browser. Please find the exact code WebBrowser_test1: public partial class…
Krishna Kumar
  • 81
  • 1
  • 1
  • 4
7
votes
2 answers

Using Angular2 in CefSharp

I'm looking for a way to run my Angular2 application in a CefSharp control and establish a communication in both directions. Let me give you two examples: I have a button in my Angular app and want my CefSharp to output a message box (Only as an…
MartinZyk
  • 192
  • 1
  • 12
7
votes
2 answers

Issue With CefSharp Browser SendKeys

I am using chromium browser to automate some task. Basically I want to load images for that I have to click "Add Image" anchor tag on the webpage. So I cannot directly click it not sure why when other works with same code. But I have managed to…
confusedMind
  • 2,573
  • 7
  • 33
  • 74
7
votes
1 answer

cefSharp ChromiumWebBrowser size to page content

Do you know how to make it so that when the ChromiumBrowser is opened, the browser sizes to contents? Right now this xaml is found in the body of a Window. When someone clicks on the text of MyTextBox, the ChromiumBrowser opens to show more…
Informat
  • 808
  • 2
  • 11
  • 25
7
votes
1 answer

Download files in Cefsharp to a directory allow user to open

I am working on building a primitive and basic web browser on which my workplace would like to host some internal applications. I"m using cefSharp in a WinForms application written in C#. I've succeeded in building the browser to navigate the…
Benjamin
  • 16,897
  • 6
  • 45
  • 65
7
votes
2 answers

WinForms CefSharp Browser LocalStorage not working

I'm trying to use CefSharp browser control at WinForms application along with the LocalStorage mechanism. The problem is that the browser control in the application changes to LocalStorage don't affect other browser windows and it doesn't get…
Yaron
  • 2,209
  • 3
  • 18
  • 33
7
votes
2 answers

cefsharp app remember password option

I am embedding a webapp using CefSharp which is all working fine. However, when logging into the app, CEF doesn't offer to remember the username and password like it does when opening the app in normal Chrome. Is there a way in CefSharp to get cef…
SteveP
  • 18,840
  • 9
  • 47
  • 60
7
votes
1 answer

What is the purpose of the cef.pak file in cefsharp?

In the FAQs of CefSharp, it states that you should disable Package Loading: var settings = new CefSharp.CefSettings { PackLoadingDisabled = true }; which is normally OK for a production-mode application I have an issue where on a particular…
oatsoda
  • 2,088
  • 2
  • 26
  • 49
7
votes
1 answer

Is it possible to get notifed when hosted Chromium Embedded has a JavaScript error?

Having used the standard WinForms WebBrowser control in the past, I was able to get OLECMDID_SHOWSCRIPTERROR notifications whenever a script error occurs inside the currently loaded page of the hosted web browser control. Now I'm switching to use…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
7
votes
2 answers

I have successfully embedded CefSharp into a .NET 4.0 application. Is it possible to get jQuery calls working on the DOM?

I am trying to find out if this is possible. I have been through the GitHub example https://github.com/chillitom/CefSharp which gave me the source code for the classes (although I could not build CefSharp itself from this GITHUB. I did however then…
julian guppy
  • 411
  • 1
  • 4
  • 21
6
votes
1 answer

CefSharp get result from existing Javascript function

I'm trying to get the result from an existing Javascript function on a local html page, by using CefSharp in a Windows Form application. The html page source is:

A Paragraph.