首先,我是 Visual Studio 编程的真正新手。话虽如此,我创建了一个弹出 Internet Explorer 窗口的小程序;我现在想用项目的图标替换左上角的 Internet Explorer 图标。
目前,我在 C# 中打开窗口,使用ShDocVw
对象:
static void Main(string[] args)
{
SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer
{
AddressBar = false,
MenuBar = false,
StatusBar = false,
ToolBar = 0,
Visible = true,
Height = 768
};
IE.Navigate2("http://someURL/page.aspx");
}
我要替换的是左上角的 IE 图标(参见包含的图片)。该图标作为资源在我的项目中,并出现在 .exe 上。
有没有办法在这里更改浏览器图标?