Web-Browser control alternative: Awesomium

Download Source Code : Awesomium Website

This will show you a great alternative instead of the regular Internet Explorer based web-browser control. This article will show you how to download the control and how to implement the control into your VB.NET application. If you're wondering how powerful the control is, here's the results from the HTML5 Test:

https://image.tf/show/fkQePbuFHN183EdE


To get the Awesomium SDK, visit the Awesomium website and download the latest SDK version. Please be aware that you can only use this under the Free License if you are an indie developer or if your team is earning <$100K, otherwise you will have to purchase a Pro license ($2900/application).

Implementing the control

1. When you have successfully installed the Awesomium SDK, look for a folder on your Desktop or in your Documents folder named "Awesomium Assemblies". Inside the folder look for the following DLL's:
"Awesomium.Core.dll"
"Awesomium.Windows.Forms.dll"
"Awesmium.Windows.Controls.dll"

2. Add these DLL's to Visual Studio or Visual Basic by going to your Toolbox > Right mouse click > Choose items > Press "Browse..." > Select the DLL's shown above.

3. For Awesomium to work you will have to insert the following controls:
"Webview"
"WebSession"

NOTE: WHEN USING THE WEBBROWSER MAKE SURE YOU PRESS: REBUILD OR PRESS: CLEAN AND THEN: BUILD.

Using the code

Some things which you'll find different to the normal web-browser control are:

Navigate Event
Instead of this:

Webbrowser.Navigate(uri)

You use this:

Webbrowser.Source(uri)

Refresh Event
Instead of this:

Webbrowser.Refresh

You use this (Cache enabled):

Webbrowser.Refresh(True)

OR use this (Cache disabled):

Webbrowser.Refresh(False)

The Websession is used to add extra properties like WebGL, HTML5 Audio, Smooth Scrolling, GPU Acceleration etc. In order for it to work, make sure you go to the properties of the Webview > Websession > Select the name of the Websession you added.

Overview

Awesomium is a great alternative and is the best you can get so far. Check the Awesomium website frequently for updates! If you have any problems please leave a comment below (requires membership, don't worry it's FREE).

I hope you found this article interesting! 1f609

Like 0 Dislike