We help build better software

Friday, May 27, 2016

Embed Google Maps in .NET Desktop Application

The lead developer of the DotNetBrowser Anna Dolbina has shared another useful tutorial on C# Corner. Here is the full text for your convenience: 

If you need to embed and display Google Maps in your .NET WPF or WinForms application, then DotNetBrowser library can help you to implement it without much effort.

DotNetBrowser is a .NET library that allows embedding a Chromium-based web browser control into a WPF or WinForms application to display web pages built with HTML5, CSS3, JavaScript, AJAX etc. The Browser component that displays web pages has two rendering modes, lightweight and heavyweight. Both modes have advantages and limitations, and it’s up to you which one to choose.

In order to embed and display Google Maps in your .NET application you just need to create an instance of the BrowserView, embed it into a Window or any other container and load the https://maps.google.com web page using the LoadURL() method of its Browser property. The following sample demonstrates the most straightforward way of doing this,
  1. using DotNetBrowser;  
  2. using DotNetBrowser.WinForms;  
  3. using System;  
  4. using System.Windows.Forms;  
  6. namespace GoogleMapsSample  
  7. {  
  8.     public partial class Form1 : Form  
  9.     {  
  10.         private BrowserView browserView;  
  12.         public Form1()  
  13.         {  
  14.             InitializeComponent();  
  15.             browserView = new WinFormsBrowserView();  
  16.             this.Controls.Add((Control)browserView.GetComponent());  
  17.             browserView.Browser.LoadURL("http://maps.google.com");  
  19.         }  
  20.     }  
  21. }  

Thursday, May 12, 2016

JxBrowser 6.4: Chromium 49 and Stability Improvements in Multi-threaded Environment

New version of JxBrowser is available for download.

In JxBrowser 6.4 we updated Chromium engine to version 49.0.2623.110, implemented several new features, and fixed important issues reported by our customers.

For the full list of the features and improvements, please see the Release Notes.