I have a requirement to run IE11 in hidden mode (Without showing the browser) so I can descretely set a cookie. This is the code I previously used which worked in IE9
cmd = (String)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IE.AssocFile.HTM\shell\opennew\command", "", null);
url = "http://www.stackoverflow.com";
Process process = Process.Start(new ProcessStartInfo()
{
FileName = cmd,
Arguments = url,
WindowStyle = ProcessWindowStyle.Hidden
});
If I use this on a machine with IE11 it shows the browser. Is there a way that I can do this?