Im currently using
System.Diagnostics.Process.Start(link);
to open web links on a dropdown menu in a program for work. However, the security suite on the works computers do not allow this to function. I have spoken with IT and they will not relax the security policies on this.
I've had a search and most of the posts suggest the way I have al开发者_开发知识库ready done it.
We use IE in work.
Is there another way of opening links?
Thanks
You can launch IE directly from Process start with a url as a parameter like:
System.Diagnostics.Process.Start(@"C:\Program Files\Internet Explorer\iexplore.exe", "http://www.stackoverflow.com");
Cheers,
CEC
PS: additional possible solution: BRIBE THE IT DEPARTMENT, good food is often a working solution to IT dept. problems.
Can you use an embedded browser window? If so, embed the browser window into your C# application and open the link in that window. If not, the starting of the process may not help you because the security suite may prevent this as well.
Have you tried using a ProcessStartInfo object with the UseShellExecute property set to false? This may have a chance of circumventing the security restriction.
http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.useshellexecute.aspx
精彩评论