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

Screen capture using dotNetBrowser?

I'm new for DotNetBrowser, are there any way to capture desktop using Dotnetbrwser? I want to share screen through the webrtc.
Suravi
  • 301
  • 1
  • 7
  • 21
0
votes
1 answer

Clicking on input element (FileUpload)

When I try to programmatically click on an input element (type="file"), ChooseFileDialogWindow doesn't appear. The same problem can be recreated on http://imgbb.com/ by trying to click on 'Start Uploading'. On this website It works only with…
Samuel
  • 35
  • 4
0
votes
2 answers

Define download path dotnetbrowser

I use dotnetbrowser to display a web browser on a old windows framework. have you an idea to define the download path ? My dotnetbroser is enable, i can show my webpage but i don't found in documentation or exemple how define this simple download…
jfc
  • 1
  • 1
0
votes
1 answer

Dotnetbrowser - Local Storage not works in VB.NET

I've created a project in VB.NET/dotnetbrowser, that lets player to open a .html Twine game, stored in the VB.NET project debug folder. Twine engine has a built-in local storage system for save/load. This feature not works in this…
0
votes
1 answer

How to wait for knockout page to finish loading before printing in DotNetBrowser?

I am trying to print using the DotNetBrowser using code like this: public void PrintUrl(string url) { using (var browser = BrowserFactory.Create()) { browser.PrintHandler = this; _waitEvent = new…
Hawk
  • 692
  • 2
  • 7
  • 18
0
votes
1 answer

How do I change the date format in the header when printing with DotNetBrowser?

The only localisation I could find is described here: https://dotnetbrowser.support.teamdev.com/support/solutions/articles/9000110018-chromium-language-localization DotNetBrowser allows configuring Chromium engine with specified language (two…
Hawk
  • 692
  • 2
  • 7
  • 18
0
votes
0 answers

DotNetBrowser memory limits?

I have a problem with DotNetBrowser and some memory hungry web pages. Looking at dotnetbrowser-chromium32.exe in windows process monitor, every pages that allocate more than 800 Mb are interrupted and the browser control becomes black. For example,…
0
votes
1 answer

Open second windows form after click html button in DotNetBrowser

I tried to open one windows form with DotNetBrowser control with specific html contrnent as below code. After button clicked on html , i need to to hide loaded form and then show the second windows form. I used c# code as below: public partial…
0
votes
0 answers

How to get DotNetBrowser to scroll?

I am having an issue where I need to be able to enable scrolling when there is overflow on a page. I have it set in the CSS with html {overflow-y: scroll;} which brings up the scrollbar but it is grayed out and doesn't work. Currently, the only…
MattE
  • 1,044
  • 1
  • 14
  • 34
0
votes
1 answer

How to get focus of textarea in dotnetbrowser?

I am looking through the samples and I have got solution for focusing on dom element using tab.I am trying to focus on textarea which is on site, so i had used virtual Tab key press to find that particular textarea and its working correctly. But can…
Gauri
  • 9
  • 1
0
votes
1 answer

Invoking JavaScript functions

How to invoke JavaScript function written in the HTML from .cs file? For the Microsoft's Winform control WebBrowser we can invoke the JavaScript function as Browser.Document.InvokeScript("JavascriptFunction"); We can also pass the parameters from…
user861341
  • 39
  • 1
  • 4
0
votes
2 answers

how can i reduce memory usage on my application running on azure

I am learning how to use the .NET framework. I am working with ASP .NET core. I have never had or hit my azure webhosting quota until recently I keep hitting quota by making very few request and this started ever since I installed dotnetbrowser…
Cody
  • 353
  • 2
  • 3
  • 17
0
votes
1 answer

How to download a pdf file instead of opening in the browserview using dotnetbrowser

I am trying to download pdf files from the server, but Browser.LoadURL opens the pdf file in BrowserView. I have assigned DownloadHandler to the Browser but it does not fire.
SR_P
  • 79
  • 6
0
votes
1 answer

Keyboard focus problems

I am needing to use the DotNetBrowserControl inside of another application (I am an add-in in the application). The application is written in WPF and has some WinForms components. When I try to use the WPFBrowserView in the app I can never get…
Matt West
  • 2,874
  • 1
  • 19
  • 13
0
votes
2 answers

How to get the absolute coordinate of a specific elements in DotNetBrowser?

Anyone know how to get the absolute coordinate of a specific elements using DotNetBrowser? Thankyou!!
1 2 3
10
11