UtilApplicationSetIEBrowserEmulationMode(Process, RegistryScope, IEBrowserEmulationMode) Method
Sets the Internet Explorer browser emulation mode for the specified process.
Namespace: DevCase.Core.ApplicationAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
Parameters
- p Process
-
The process.
- scope RegistryScope
-
The registry scope.
- mode IEBrowserEmulationMode
-
The Internet Explorer browser emulation mode to set.
This is a code example.
No code example is currently available or this language may not be supported.
Dim processName As Process = Process.GetCurrentProcess()
Dim scope As RegistryScope = RegistryScope.CurrentUser
Dim oldMode As IEBrowserEmulationMode
Dim newMode As IEBrowserEmulationMode
oldMode = GetIEBrowserEmulationMode(p, scope)
SetIEBrowserEmulationMode(p, scope, IEBrowserEmulationMode.IE11Edge)
newMode = GetIEBrowserEmulationMode(p, scope)
Console.WriteLine(String.Format("Old Mode: {0} ({1})", oldMode, CStr(oldMode)))
Console.WriteLine(String.Format("New Mode: {0} ({1})", newMode, CStr(newMode)))
Dim f As New Form() With {.Size = New Size(1280, 720)}
Dim wb As New WebBrowser With {.Dock = DockStyle.Fill}
f.Controls.Add(wb)
f.Show()
wb.Navigate("http://www.whatversion.net/browser/")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.