I know there is built-in Internet explorer, but what I'm looking for is to open Firefox/Mozilla window (run the application) with specified URL. Anyone can tell me how to do that in C# (.nET) ?
Chosen solution To achieve this you need to make copies of the Firefox desktop shortcut and add the URL to the target line after the path to the Firefox program. Leave a space before the URL. See also: https://developer.mozilla.org/Command_Line_Options.
https://www.mozilla.org/en-US/firefox/all/
Look for the small gray shield icon in the extreme right-hand corner of the address bar. Click the "Load unsafe script" link. You will be taken back to the entry page of your course; navigate back to the page with the embedded video.
You can do this:
System.Diagnostics.Process.Start("firefox.exe", "http://www.google.com");
This will launch the system defined default browser:
string url = "http://stackoverflow.com/";
System.Diagnostics.Process.Start(url);
Remember that Process.Start(url) might throw exceptions if the browser is not configured correctly.
See ProcessInfo.UseShellExecute
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With