Platforms to show: All Mac Windows Linux Cross-Platform

Back to IEWebBrowserMBS class.

IEWebBrowserMBS.GetInternetExplorerHiDPI as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method HTMLViewer Win MBS Win Plugin 20.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Query whether HiDPI handling is enabled.

We can opt-in for your application to let HTMLviewer use proper resolution handling for web content.

IEWebBrowserMBS.GetInternetExplorerVersion as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Queries IE version used for this application.

Queries the Internet Explorer version to use for HTMLViewer.

Some examples using this method:

IEWebBrowserMBS.SetInternetExplorerHiDPI(Enable as Boolean) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method HTMLViewer Win MBS Win Plugin 20.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Sets whether HiDPI handling is enabled.

We can opt-in for your application to let HTMLviewer use proper resolution handling for web content.
You may just call this in your app.open event.

IEWebBrowserMBS.SetInternetExplorerVersion(version as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method HTMLViewer Win MBS Win Plugin 20.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Sets IE version used for this application.
Example
// make sure we don't end up with Internet Explorer in version 7, which is default.
Dim v As Integer = IEWebBrowserMBS.GetInternetExplorerVersion

If v < 11000 Then // below version 11.0

Dim b As Boolean = IEWebBrowserMBS.SetInternetExplorerVersion(11000)
If b Then
MsgBox "Requested Internet Explorer version 11.0."
Else
MsgBox "Failed to set IE version?"
End If
End If

By default Xojo uses IE7 for the HTMLViewer, even if you have version 11 enabled.

ValueDescription
11001Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks.
11000IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11.
10001Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive.
10000Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10.
9999Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks.
9000Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9. In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.
8888Webpages are displayed in IE8 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks.
8000Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8. In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.
7000Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting the WebBrowser Control.

In a test on Windows 10, we get by default this browser version:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Win64; x64; Trident/7.0; .NET4.0C; .NET4.0E; Tablet PC 2.0; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)

and with setting it to 11000, we get this:

Mozilla/5.0 (Windows NT 6.2; Win64; x64; Trident/7.0; rv:11.0) like Gecko

Some examples using this method:

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


The biggest plugin in space...