This is more about setting up the browser than about how the process is called from C #. In both cases, the system simply calls the default program assigned to handle the URL. There may or may not be arguments for this command, but usually it just calls chrome.exe <url> , and from there the chrome.exe process decides how to handle the parameter.
The only method I know about is to check the registry (in the HKEY_CLASSES_ROOT\http\shell\open\command section) and parse the string value. Once you know the specific browser, you can control the presentation using command line arguments. Of course, this is specific to Windows and can be a pain to manage.
If the browser does not support setting geometry from the command line, you will need to use FindWindow and SetWindowPos (using P / Invoke) to control the location of the window.
I'm not sure about your application, but would I embed WebBrowser Control according to your needs? Then you will have full control over the presentation.
source share