我有一个嵌入式浏览器的程序。当我尝试加载网站时,(Motdgd.com)它会抛出错误
该物业的价值' atob'是null或undefined而不是函数对象
第101行 Char 5
我进行了广泛的搜索,但找不到答案。
Public Class Form1
Dim Count As Integer
Dim AdLink As String
Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Count = 1
UserLink = TextBox1.Text
Label1.Text = UserLink
WebBrowser1.Url = New Uri(UserLink)
End Sub
Private Sub Label2_Click(sender As Object, e As EventArgs) Handles Label2.Click
End Sub
End Class
答案 0 :(得分:0)
解决
InitializeComponent();
RegistryKey Key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", true);
Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", 11999, RegistryValueKind.DWord);
Key.Close();
将强制IE11通过注册表运行