![]() |
|
[.NET] How to open your deault web browser and open webpage [Mozilla or IE] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] How to open your deault web browser and open webpage [Mozilla or IE] (/showthread.php?tid=118833) |
How to open your deault web browser and open webpage [Mozilla or IE] - BETAhkr - Aug 8, 2009 I just saw a post where one person typed... Code Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.google.comWhy you would use that? I don't know. Here is a very simple way. Code Process.Start "hackforums.net"That's it. This is will open up whatever default browser you use such as Mozilla Firefox or Internet Explorer and direct you right the to web page you have in the code. - GoldStar - Aug 8, 2009 is'nt like this?? Process.Start("hackforums.net") ?? - BETAhkr - Aug 8, 2009 Yes, It's the same thing No need to add the ( )'s, VB2008 will add those in for you automatically. - Mathias - Aug 8, 2009 ShellExecute would be to prefer for opening browser/browsing, since its a bit more advanced - BETAhkr - Aug 8, 2009 But the shell command is still only going to the website that you've added. Code Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.google.comWhich is just having the command prompt do that. Why do that when you have the process.start code which is shorter, easier to remember, and doesn't run through your command prompt or directories, It might be more "advanced" but why would you make the code more advanced when no one sees the code and it does the same thing? |