0
Process.Start()を使用してフルスクリーンでビデオファイルを開く方法を知りたいと思います。C#を使用してProcess.Start()でビデオファイルをフルスクリーンで開くには?
私が現在持っているコードは、Windows 10のタスクバーを隠さない、最大化されたモードで自分のディレクトリに(のみ)ファイルを開きます。 Process.Start()でビデオファイルをフルスクリーンで開くには?
static void Main(string[] args)
{
foreach (var path_to_object in Directory.GetFiles(@"D:\"))
{
ProcessStartInfo file_object = ProcessStartInfo(path_to_object);
file_object.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(file_object);
}
}
デフォルトのメディアプレーヤーにウィンドウをmaxに設定するコマンドがない場合は、ピンボケを試み、ウィンドウを見つけて最大化することができます。 http://improve.dk/finding-specific-windows/とhttps://stackoverflow.com/questions/4566632/maximize-another-process-window-in-net – JohanP