C# を使用して最大化された Internet Explorer を開く必要があります。私は次のことを試しました:
try
{
var IE = new SHDocVw.InternetExplorer();
object URL = "http://localhost/client.html";
IE.ToolBar = 0;
IE.StatusBar = true;
IE.MenuBar = true;
IE.AddressBar = true;
IE.Width = System.Windows.Forms.SystemInformation.VirtualScreen.Width;
IE.Height = System.Windows.Forms.SystemInformation.VirtualScreen.Height;
IE.Visible = true;
IE.Navigate2(ref URL);
ieOpened = true;
break;
}
catch (Exception)
{
}
さまざまなサイズで開くことができますが、最大化された IE を開く方法が見つかりませんでした。msdnを確認しましたが、最大化するためのプロパティはありません。
いくつかの提案をお願いします。
PS: C# コンソール アプリケーション、.Net4.5、および VS2012 を開発しています。