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
1
vote
1 answer

Execute javascript inside iframe document

I am trying to execute javascript which is inside an iframe document using Dotnetbrowser 1.11. In the following code returnValue.IsFunction() returns false. JSValue returnValue = browser.ExecuteJavaScriptAndReturnValue(FunctionName); if…
SR_P
  • 79
  • 6
1
vote
1 answer

DotNetBrowser DOMNode debugging

I am using DotNetBrowser, or at least trying to, and I am trying to get all of the checkboxes in a document. public static void SetCodecSettings() { var waitEvent = new ManualResetEvent(false); _mf.Browser.FinishLoadingFrameEvent…
BigDevJames
  • 2,650
  • 5
  • 21
  • 36
1
vote
1 answer

donetbrowser HOWTO get posted form data from a Dotnetbrowser?

I need help to get posted form data a Dotnetbrowser. In fact, I want to add a listener event on a button, when this button is clicked, so I get the data, for example: …
1
vote
1 answer

FinishLoadingFrameEvent event is called once when loading multiple urls

I have a list of urls in a for loop, loading a url one at a time but FinishLoadingFrameEvent event is called only once. My complete code is like this private List urls = //fetch from db; ManualResetEvent waitEvent = new…
mathew
  • 185
  • 4
  • 20
1
vote
0 answers

Handling navigation events

I want to inject functionality following any navigation of pages within a DotNetBrowser instance. I've tried hooking the following events, but they all only fire on the first load and not after each navigation event. FinishedLoadingFrameEvent…
Steve Mitcham
  • 5,268
  • 1
  • 28
  • 56
1
vote
1 answer

Zooming on CTRL + Mousewheel in DotNetBrowser

I'm using the DotNetBrowser WPF control and need to set the Zoom level on a CTRL + MouseWheel event. I've added the following code to my control, expecting e.Delta to give me the direction the mouse wheel is being moved. Having the CTRL key down…
Steve Mitcham
  • 5,268
  • 1
  • 28
  • 56
1
vote
2 answers

Create WPF BrowserView defined in XAML with custom BrowserContext

I've got a DotNetBrowser instance defined in a XAML file The application is used by multiple people, which is causing issues due to the issue discussed here: Chromium…
Steve Mitcham
  • 5,268
  • 1
  • 28
  • 56
1
vote
1 answer

DotNetBrowser set value of form

I'm trying to set value of form in DotNetBrowser, but to get this form I have to use var b = browserView.Browser.GetDocument().GetElementsByTagName("span")[1]; because ID's of forms aren't unique. The problem is that returns me…
cezar5122
  • 49
  • 5
1
vote
1 answer

why i can't Set Attribute to this element?

im trying to fill a text box using dotnetbrowser, this is the element source,
Néoxyne
  • 53
  • 1
  • 8
1
vote
1 answer

DotNetBrowser FinishLoadingFrameEvent multiple use

im trying to load multiple pages using DotNetBrowser , and i need to know each time when the new url is loaded, myBro.FinishLoadingFrameEvent += delegate (object send, FinishLoadingEventArgs es) { if (es.IsMainFrame &&…
Néoxyne
  • 53
  • 1
  • 8
1
vote
1 answer

Handling file being downloaded from new browser window other than current browser window

I am using Dotnetbrowser 1.11 and trying to download file on button click from a website and have assigned downloadhandler to the browser. However allowdownload event does not fire after the button click. Have noticed that on manual button click a…
SR_P
  • 79
  • 6
1
vote
1 answer

DotNetBrowser LoadHTML Stylesheet not used

When using DotNetBrowser LoadHTML (ie. HTML in a string), it does not read the external CSS file specified in the element. If I save the HTML and then load into DotNetBrowser with LoadURL it renders fine. Why would this work with LoadURL but not…
Net Ziggy
  • 41
  • 2
  • 3
1
vote
1 answer

Chromium profile directory is already used/locked by another browser

I am using dotnetbrowser-1.11 in two different applications. If any one of this application is already running, then the other application throws the following error on creating browser instance. Chromium profile directory is already used/locked by…
SR_P
  • 79
  • 6
1
vote
1 answer

Dotnetbrowser DOMElement.NodeValue no effect , no arg's namecan be seen?

I used latest version dotnetbrowser, q1:I found the prop of DOMElement class can not been seen in the debug window, and some class(method)'s arg name can not be seen, this is caused by Confusion protection maybe... q2:…
lsl
  • 19
  • 3
1
vote
1 answer

Can dotnetbrowser run on iis only?

Can https://www.teamdev.com/dotnetbrowser run on a IIS .NET server only? We want to: 1) Use ASP.NET to create a new thread upon a certain user action 2) load various DOMs from various external websites into instances if it 3) wait 30 seconds for…
user1946932
  • 474
  • 1
  • 16
  • 41