Setting a Home-Made Browser as Default

Reply

Join Date: Nov 2004
Posts: 10
Reputation: mcclth is an unknown quantity at this point 
Solved Threads: 0
mcclth mcclth is offline Offline
Newbie Poster

Setting a Home-Made Browser as Default

 
0
  #1
Jan 20th, 2005
Hi everyone
I've been working on developing a web browser in VB6 similar in capability to IE and I would like to set it as the default browser. I have been unsuccessful in finding any way to A) change the default browser to mine with the program itself [the way IE does if you tell it to check if it is the default] or B) change it manually via the registry or whatever might be the case. Any help you can provide would be greatly appreciated.
Thank you for your time!
-tom
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Setting a Home-Made Browser as Default

 
0
  #2
Jan 21st, 2005


HKEY_CLASSES_ROOT\http\shell\open\command

In VB or VBS, This is real easy to do.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 10
Reputation: mcclth is an unknown quantity at this point 
Solved Threads: 0
mcclth mcclth is offline Offline
Newbie Poster

Re: Setting a Home-Made Browser as Default

 
0
  #3
Jan 22nd, 2005
thanks for the reply. If you (or anyone else, I suppose) wouldn't mind answering them, I have a few more questions now that I know that. I see the value on my comp for IE is:

"C:\PROGRA~1\INTERN~1\IEXPLO~1.EXE" -nohome

If my browser is "C:\Program Files\BrowserProg\Browser.exe" is this right:
"C:\PROGRA~1\BROWSE~1\BROWSER.EXE" -nohome

Also, does "-nohome" mean there is no homepage set, and if so, what would it look like set?

Thanks you for your time
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Setting a Home-Made Browser as Default

 
0
  #4
Jan 22nd, 2005
It depends on the operating system, in regards to your path. If you are using NTFS, chances are that they whole entire Path is acceptable. If you are using FAT or something along those lines, then the chances are good that you'll need to ~ them. I suggest manually trying it in the registry, with one way, and then trying to see if it loads correctly, if not, try the other way.

As For -nohome, there has been a ton of different explanations, but it would be a blank white page. some people claim nohome is just about:blank, otherwise claim it's...... a little something more on the dark side.

I'm not 100% sure that -nohome is going to work with your program, even if you are using VB's web browser control. Because you are not passing paramaters (-nohome) to the object (the browser control), you are passing it to YOUR EXE.

So, You'd have to check something about passing parameters to your program, and then passing those to your control. Basically, something a little more to the point would be:

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. browser1.navigate "about:blank"

use that in your form load, or, whenver the browser is supposed to show. That will do essentially the same thing.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC