Platforms to show: All Mac Windows Linux Cross-Platform

WebView2ControlMBS control

See also desktop control: DesktopWebView2ControlMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
control WebView2 MBS WinFrameworks Plugin 20.5 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The MBS control for the Chrome based WebView2 control from Microsoft.

Read about WebView2 control here:
https://developer.microsoft.com/en-us/microsoft-edge/webview2/

There you also fine the installers needed to install it, unless you have the 2021 version of Windows, which may include it preinstalled.

If you use this control on macOS and Linux, it will do nothing.
On Windows if the control fails to initialize, the Opened event will not fire.
But if it fires, it will be some time after the open event fired as initialization is asynchronous.

If you call LoadURL, LoadHTML or set URL property too early, we cache that and perform the action later when the web viewer is initialized properly.

If you add an event, we register it with the C++ control. So if you don't specify an event, you may get the default behavior.

All functions may raise WebView2ExceptionMBS in case of errors.

Some examples using this control:

Blog Entries

Xojo Developer Magazine

Release notes

  • Version 24.2
    • Improved WebView2ControlMBS to pick temp folder for user data folder if you don't set userDataFolder property.
  • Version 23.4
    • Added SetVirtualHostNameToFolderMapping and ClearVirtualHostNameToFolderMapping methods to WebView2ControlMBS control.
  • Version 23.2
  • Version 23.1
  • Version 22.2
    • Added Copy, Cut, Paste, SelectAll, ClearSelection and Print methods to WebView2ControlMBS control.
  • Version 22.0
  • Version 21.5
  • Version 21.4
    • Added areBrowserAcceleratorKeysEnabled, IsGeneralAutofillEnabled, IsPasswordAutosaveEnabled, IsPinchZoomEnabled and UserAgent properties to WebView2ControlMBS control.
    • Fixed memory leak in CapturePreview method in WebView2ControlMBS control.
  • Version 21.3

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


SCNIOSControlMBS   -   WinPreviewControlMBS


The biggest plugin in space...