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
0
votes
2 answers

Modify response using dotnetbrowser

Now we can use dotnetbrowser catch http request and modify the request data, so can we catch http(s) and ajax response and modify it (both header and data body) like fiddler? for now we use fiddler core and dotnetbrowser to deal this question!
lsl
  • 19
  • 3
0
votes
1 answer

OnKeyPress JavaScript funcion on DotNetBrowser SetAttribute("value", "text")

When I try to SetAttribute on element, the text doesn't invoke onkeypress JS function. What should I do? I was thinking about using "sendkeys". But, it's not a good solution to handle with threads. onkeypress="return filtraPassa(this, event,…
Eric Otani
  • 13
  • 2
0
votes
1 answer

DotnetBrowser and Mono for ARM

Anyone know if there is a way to get https://www.teamdev.com/dotnetbrowser to work with Mono for ARM? We have an ARM device and we would love to have it to work in it. Thanks
Gutemberg Ribeiro
  • 1,533
  • 1
  • 21
  • 45
0
votes
2 answers

Simulate mouse move in and mouse click in DotNetBrowser

I am testing the DotNetBrowser and can't find the way simulate mouse move and mouse click. Is it possible to do without using JavaScript but just methods of the component? It must work on Flash elements in the page. So simulation click and move via…
user3763845
  • 95
  • 14
0
votes
2 answers

DotNetBrowser: System.AccessViolationException

When running one of the sample projects, I'm hitting the error below and there's no way for me to proceed. I'm using DotNetBrowser 1.7.x, Visual Studio 2013 using runtime v4.5, and Windows 10. Can you please help me on this…
-1
votes
1 answer

Why Mistake - when simulate mouse in dotnetbrowser?

But when build - The calling thread must be STA, because many UI components require this in first browser.MouseMove(x, y) public MainWindow() { // Initialize WPF Application UI. InitializeComponent(); // Create WPF BrowserView…
-1
votes
1 answer

Which Browser for a Touch-Enabled WPF Application?

I looked at this thread here searching for a Web Browser to embed into a touch-enabled WPF application (on Windows 8 or 10). I need to support manipulations (meaning be able to zoom, pane, rotate with touch events). If possible, I would like also to…
Christophe
  • 597
  • 4
  • 14
-2
votes
1 answer

Use it headless and click buttons/links

I want to use dotnetbrowser headless. Load a page extract data, fill in test boxes and click a button. Get the next page and so on. Possible or not? If possible, exampes? With best regards Gerhard
Gerhard
  • 339
  • 1
  • 2
  • 11
-2
votes
1 answer

How to get geolocation information in DotNetBrowser

The local html is showed in the DotNetBrowser (C#, Visualstudio 2017) An error will occur when running the following code of javascript. navigator.geolocation.getCurrentPosition() ※Full of the sources of the website I want to show is below…
Rocky
  • 1
-2
votes
1 answer

How to install Open-Source license #dotnetbrowser

I have an Open-Source license for DotNetBrowser, but I'm hitting an exception whenever I use the WinFormsBrowserView because I'm failing the license validation: "DotNetBrowser license check failed: This license can only be used with Bound to type…
Brandon
  • 21
  • 2
-5
votes
2 answers

DotNetBrowser is a tiny window in my form, why and how do I fix this?

This is my current code: https://hastebin.com/ifejusezat.cs This is a screenshot of what I see: https://gyazo.com/2ee9b1210649ca8ec61e3fa7e645a286 public partial class Form1 : Form { public Form1() { InitializeComponent(); …
RedBox
  • 1
  • 2
1 2 3
10
11