Provides an embedded Chromium-based web browser that can be
integrated into desktop applications. The control is implemented using
the Microsoft Edge WebView2 runtime and provides a modern, secure
browser interface. It can also be used as an embedded PDF viewer,
allowing applications to view, save and print documents.
Reference
Control Information
| File Name |
CSHTMX12.OCX |
| Version |
12.0.3041.1380 |
| ProgID |
SocketTools.WebView.12 |
| ClassID |
B9925327-BDFA-467B-9E1A-FC24A78C1866 |
| Threading Model |
Apartment |
| Help File |
CST12CTL.CHM |
| Dependencies |
Microsoft Edge WebView2 Runtime |
Overview
The SocketTools WebView ActiveX control provides Windows
developers with a practical way to add a modern browser to
applications created with development tools that support ActiveX
controls. It uses the Microsoft Edge WebView2 runtime, allowing
existing desktop applications to display modern web content without
relying on the legacy Internet Explorer browser engine.
This is particularly useful for developers maintaining older
Windows applications that previously used the Internet Explorer-based
WebBrowser control. The SocketTools control is not a drop-in
replacement for that control, and some application changes are
required, but it provides many of the same types of functionality
using a modern browser engine. Developers can navigate to websites,
load application-generated HTML, execute JavaScript, receive browser
events, and integrate web content directly into an application's user
interface.
The control simplifies much of the complexity associated with using
the native WebView2 COM interfaces. Creation and management of the
WebView2 environment and browser instance are handled internally,
allowing developers to work with familiar ActiveX properties, methods,
and events. This makes WebView2 accessible to development environments
where directly implementing Microsoft's WebView2 interfaces would
otherwise be difficult or impractical.
Content can come from the web, the local system, or the application
itself. Programs can dynamically generate HTML and display it directly
in the control, making it useful for reports, dashboards,
documentation, status displays, and other application\-generated
content. Local resources can also be displayed using file:// URLs,
including HTML pages, images, PDF documents, and other formats
supported by WebView2.
When connecting to web servers, the control uses the underlying
WebView2 runtime and supports modern versions of HTTP, including
HTTP/1.1, HTTP/2, and HTTP/3 where available. Connections are secured
with Transport Layer Security (TLS), with support for TLS 1.2 and TLS
1.3 by default, and certificate validation is performed automatically
by the runtime. This ensures that applications embedding the browser
benefit from the same security standards as Microsoft Edge, including
enforcement of current best practices for encryption and certificate
handling.
By using the Edge WebView2 runtime, applications gain access to a
current, supported browser engine rather than remaining dependent on
Internet Explorer technology. This allows developers to extend the
useful life of established Windows applications while providing users
with secure access to modern web content and services.
Requirements
The end-user system must have the current version of the Edge
WebView2 Runtime installed. On Windows 11 and Windows 10 version 2004
(build 19041) and later, the runtime is considered part of the
operating system and is updated automatically. On earlier platforms
such as Windows 7, Windows 8, and Windows 10 builds prior to 19041,
you may need to redistribute or install the WebView2 runtime
separately. The control provides properties which can tell you if the
runtime is installed and what version is available.
The SocketTools ActiveX Edition components are self-registering
controls that are compatible with any programming language that
supports the Component Object Model (COM) and the ActiveX control
specification. If you are using Visual Basic 6.0, Service Pack 6 (SP6)
is required. We recommend installing all available updates for your
development tools. Although the Visual Basic 6.0 runtime is supported
on Windows 11, the IDE itself is no longer officially supported by
Microsoft. Legacy IDEs and compilers may also require elevated
(administrator) privileges to run properly.
The ActiveX controls are supported on Windows 7, Windows Server
2008 R2, and later versions of both desktop and server editions of
Windows. For Windows 7, Service Pack 1 (SP1) is the minimum
requirement. For Windows 8 systems, the 8.1 update must be installed.
On ARM-based platforms, the minimum supported version is Windows 10
build 1709.
SocketTools includes components for both 32-bit (x86) and 64-bit
(x64) Windows platforms. All modern versions of Windows are 64-bit,
but we continue to include 32-bit components for compatibility with
legacy development tools such as Visual Basic 6.0. We also provide
native ARM64 ActiveX controls for systems running Windows on ARM. Note
that 32-bit applications on ARM run using x86 emulation, and Microsoft
no longer supports native ARM32 applications.
If you are using VBScript, Visual Basic for Applications (VBA), or
another scripting environment on an ARM-based system, be aware that
64-bit hosts will require ARM64 components, while 32-bit hosts will
use x86 components under emulation. This includes applications created
with Visual Basic 6.0. To reduce deployment complexity and avoid
confusion, SocketTools does not include ARM32 ActiveX controls in its
standard redistribution packages but they are available on request for
legacy or specialized scenarios.
Distribution
When distributing an application which uses this control, you can
either install the OCX file as a shared component in the appropriate
system folder or in the same folder as your application executable. If
the control is installed in a shared system location, the installer
should manage it as a shared component to prevent other applications
from being affected when it is updated or removed. If you install the
control in the same folder as your executable, it is recommended that
you use registration-free activation or COM redirection to ensure that
the correct version of the control is loaded by the application.
In addition to the SocketTools control, the WebView2 Runtime
must be present on the target system. On current versions of
Windows 10 and Windows 11 the runtime is treated as part of the
operating system and is updated automatically. On earlier platforms,
you may need to redistribute or install the runtime using
Microsoft's evergreen installer. We recommend always using the
evergreen runtime rather than the fixed version, as it ensures
security updates and feature improvements are delivered through
Windows Update without requiring changes to your application.
The WebView2 Runtime is available as a separate download from
Microsoft. For current links and redistribution guidelines, please
refer to the SocketTools knowledge base or Microsoft's official
documentation.
|