【发布时间】:2019-12-16 23:05:54
【问题描述】:
我在winforms 上使用webbrowser 编写了一个简单的应用程序。页面已加载,但有一些缺陷,页面显示,但在 Internet Explorer 11 中并非如此。大多数 java 脚本都不起作用(可能是全部)。有些网站会警告我的浏览器已过时,但我读到网络浏览器使用 Windows 中的内置 Internet Explorer。那么,为什么在 Internet Explorer 中一切正常,而在网络浏览器中几乎一切都不起作用? IDE 版本:Visual Studio 2019。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using Microsoft.Win32;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
webBrowser1.ScriptErrorsSuppressed = true;
webBrowser1.Url = new Uri("https://stackoverflow.com/");
}
}
}
【问题讨论】:
-
this question 上的 cmets 似乎相关
标签: c# winforms internet-explorer webbrowser-control