Questions tagged [dotnetbrowser]

Use this tag for questions about DotNetBrowser, a Chromium-based control which allows .NET applications to display web pages.

Definition:

DotNetBrowser is a .NET Library which allows embedding a Chromium-based control into .NET applications to display modern web pages built with HTML5, CSS3, JavaScript, etc. DotNetBrowser supports both WPF and WinForms .NET graphical subsystems and provides WPF/WinForms UI controls which you can embed into your .NET Desktop Application to display web pages.

Main features:

  • WPF / WinForms Control
  • Display Web Accurately
  • HTML5, CSS3, JavaScript Support
  • Multi-Process Architecture
  • Browser Events Listeners
  • JavaScript Dialogs Handler

A full list of features can be found here: https://www.teamdev.com/dotnetbrowser#features

System requirements:

Microsoft Windows

  • Windows 10, 8, 8.1 & 7
  • Windows Server 2016, 2012 & 2008 R2

Microsoft Visual Studio

  • 2013, 2015 & 2017

.NET Framework

  • 4.0 or higher

More info & reading:

Code example:

WinForms:

BrowserView browserView = new WinFormsBrowserView();
Controls.Add((Control) browserView);
browserView.Browser.LoadURL("http://www.google.com");

WPF:

<Grid Name="mainLayout">
</Grid>

webView = new WPFBrowserView(BrowserFactory.Create());
mainLayout.Children.Add((UIElement)webView.GetComponent());
webView.Browser.LoadURL("http://www.google.com");
161 questions
2
votes
1 answer

C# and DotNetBrowser Ajax request do not work

I use a DotNetBrowser in my WPF application and I have a problem js $(document).ready(function(){ $.getJSON("data.json").success(function() { alert("succes"); }).error(function(e) { alert("error"); }); }); error Cross origin…
Саске
  • 190
  • 3
  • 12
2
votes
1 answer

DotNetBrowser crashing when creating browser due to empty locales

We're trying to debug an issue where DotNetBrowser is not able to be created on a Windows 10 Pro 64-bit machine (happens to be running on new AMD Ryzen 7 CPU). We enabled DotNetBrowser's logging and here is the log: 5/8/2017 12:35:03 AM Information…
JJ Skuld
  • 21
  • 3
2
votes
1 answer

Dotnetbrowser different proxy settings in multiple browser instances

from the documentation: "You can configure Browser instance to use its own proxy settings. When you modify Browser proxy settings you don't modify the system global proxy settings." Can i use multiple browsers with different proxy settings? As i…
Zolll
  • 21
  • 3
2
votes
1 answer

Returning Books json through dotnetbrowser

I am trying to return JSON string through XMlHTTPRequest response body. the problem is after the method create and instance of AjaxResourceHandler it will go ahead and execute the Get method before getting the required data which returns an empty…
Cody
  • 353
  • 2
  • 3
  • 17
2
votes
1 answer

Convert windows form application to Asp lr console application

I am using vs 2017rc and I have compatibility issues. I can't add windows form doll to my project and when I try to convert the code from win forms to Asp k get issues. Maybe I am doing it wrong but it seem to work on vs2015. Please I need help to…
Cody
  • 353
  • 2
  • 3
  • 17
2
votes
1 answer

how to get ajax request response body using dotnetbrowser?

I have gone through the document on the dotnetbrowser website... while I saw an example that shows how to intersect Ajax calls or filter Ajax calls... I want to know if its possible to obtain Ajax request body response after execution. if it is…
Cody
  • 353
  • 2
  • 3
  • 17
2
votes
2 answers

DotNetBrowser PrintHandler in console application

I am trying to print webpage which is loaded in 'DotNetBrowser.Browser', as PDF document and save locally using DotNetBrowser PrintHandler. This works fine in a windows form application with WinFormsBrowserView but in case of console application,…
SR_P
  • 79
  • 6
2
votes
2 answers

C# Accessing dotnetBrowser from a UserControl

So essentially I'm using the dotNetBrowser for a project that i'm loading into a panel on my main form, and I have a button in a usercontrol for user input so it can interact with the browser. Here's what I have: public partial class Form1 :…
AlphaOmega
  • 117
  • 10
2
votes
1 answer

How to fill in username and password using DotNetBrowser

public MainWindow() { InitializeComponent(); BrowserView webView = new WPFBrowserView(); mainLayout.Children.Add((UIElement)webView.GetComponent()); ManualResetEvent waitEvent = new ManualResetEvent(false); …
2
votes
2 answers

Possible to use DotNetBrowser with UWP Applications?

I see that DotNetBrowser works with WPF what about UWP Applications?
Tyler Jones
  • 135
  • 10
2
votes
1 answer

DotNetBrowser : passing a json string from .Net to a JavaScript function accepting a json object

I'm trying to transform a json string in .net to that correct type so that I can pass it through the dotnetbrowser bridge to a JavaScript method that is expecting a json object. My existing code in .net creates a newton-soft json object like…
jchristof
  • 2,794
  • 7
  • 32
  • 47
2
votes
1 answer

Unable to find a valid DotNetBrowser Licence. Please make sure you have set up your licence correctly

Recently i buy the license of DotNetBrowser, but when i substitute the file teamdev.licenses of my proyect the form give me an error when run the application: Unable to find a valid DotNetBrowser Licence. Please make sure you have set up your…
JorgeFdzG
  • 21
  • 4
2
votes
1 answer

Silverlight support in DotNetBrowser

I tried to open website with Silverlight using DotNetBrowser and received alert that I need to install Silverlight. However, on DotNetBrowser website Silverlight is mentioned as supported. I can open the same website in Internet Explorer without…
Madman
  • 3,171
  • 2
  • 32
  • 44
1
vote
1 answer

dotnetbrowser javascript interacting with c# this[string name]

I have a project that i am running .NET code inside. i need to use the existing objects and cannot modify them. The class in c# that i am trying to use is class Fields { Hashtable list = new Hashtable(); public Fields this[string Name] { …
gashach
  • 420
  • 5
  • 12
1
vote
0 answers

Stopping touch gesture of an active pane penetrating and activating object behind it in Visual Studio 2019 adn dotnetbrowser

First of all, I am a project manager in developing a browser for a specific use at client's corporation. My experience is in network infrastructure however I know a tiny bit programming and what it can do due to extra study for this project. It is…
1
2
3
10 11