6 Replies - 1278 Views - Last Post: 01 December 2009 - 07:40 AM Rate Topic: -----

#1 lumus  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 07-November 09

default web browser

Posted 29 November 2009 - 09:08 AM

hey,
im making an app, which uses the user web browser..
in order to make the app more friendly, i would like to know, if there is a way,
to get the user defult web browser (and the specifed location of the exe file);

tnx alot.
hanan.
Is This A Good Question/Topic? 0
  • +

Replies To: default web browser

#2 RoySpoolder  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 28
  • Joined: 26-November 09

Re: default web browser

Posted 29 November 2009 - 11:15 AM

Dear lumus,

I dont know how to make your browser the default browser. The .exe file is located in this folder :
\Documents\Visual Studio 2008\Projects\"Applicationname"\"Applicationname"\bin\Debug


But you can't run this .exe file at another computers !

Regards,
Roy Spoolder
Was This Post Helpful? 0
  • +
  • -

#3 lumus  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 07-November 09

Re: default web browser

Posted 29 November 2009 - 11:31 AM

first.. sory for the lame english.
no no..
u got me wrong..
ill be more clear.
in my app, i use the user web browser such as Internet Explorer and firefox..
for exsample, the default web browser of my computer is Avant, is there a command that finds the defualt web browser name and EXE?
Was This Post Helpful? 0
  • +
  • -

#4 lumus  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 07-November 09

Re: default web browser

Posted 29 November 2009 - 12:00 PM

i wont open a new topic but i have another q.

how do i get names of computers that i share router with them.. those i can share folder with..
Was This Post Helpful? 0
  • +
  • -

#5 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: default web browser

Posted 30 November 2009 - 05:52 AM

if you want to open a URL in the user's default web browser, simply use the Process.Start method.

Process.Start("http://www.google.com");



This URL will be opened in the user's default browser.
Was This Post Helpful? 0
  • +
  • -

#6 finaiized  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 84
  • Joined: 29-November 09

Re: default web browser

Posted 30 November 2009 - 09:15 PM

If you want to use the default web browser, just do as eclipsed4utoo has said. If you want to open it specifically in one browser, you could run 'C:\Program Files\Internet Explorer\iexplore.exe' as an example for Internet Explorer. However, you have to check for the users installation hard drive, etc
Was This Post Helpful? 0
  • +
  • -

#7 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: default web browser

Posted 01 December 2009 - 07:40 AM

View Postfinaiized, on 1 Dec, 2009 - 12:15 AM, said:

If you want to use the default web browser, just do as eclipsed4utoo has said. If you want to open it specifically in one browser, you could run 'C:\Program Files\Internet Explorer\iexplore.exe' as an example for Internet Explorer. However, you have to check for the users installation hard drive, etc


IE, Firefox, and Chrome add themselves to the PATH system variable. So simply starting "iexplore.exe", "firefox.exe", or "chrome.exe" will start the browser. No need to try to figure out where it's installed.

Process.Start("iexplore.exe");
Process.Start("firefox.exe");
Process.Start("chrome.exe");



I would assume the same is for Opera and Safari.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1