I am trying to launch chrome browser with a single tab window using this c# code:
Process process = new Process();
process.StartInfo.FileName = "chrome";
process.StartInfo.Arguments = url + " --new-window --window-size=640,480";
process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
process.Start();
The new window opens, but the size does not correspond to the size I passed along as argument. Does the command line switch of chrome "--window-size=x,y" not work?
Is there a different method available for this purpose.