We have a WPF app that uses the browser control. As this emulates an older version of IE most sites do not render correctly.
By adding a registry key of 'OurApp.exe' and a value of 11000 to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION\ it then works perfectly.
The question is - how can I detect the current setting (if there is one) and change it if required from within the app using VB.NET?
I can return the current version of IE on the local machine using
Public Function ReturnIEVersion() As String
Try
Dim vVersionO As Object = New System.Windows.Forms.WebBrowser().Version
Dim vVersion As String = vVersionO.ToString
Return vVersion
Catch ex As Exception
EmailError(ex)
Return "Error"
End Try
End Function
Then I just need to compare that to any existing entry and update if required, and I assume a method to determine if the local machine is 64 or 32 bit (as the registry paths will be different)?
Thank you