Default Browser VB.Net

dodode

Newcomer
Joined
Apr 4, 2010
Messages
3
Heya,

I have created my own internet browser which is almost finished, I just need one more thing to make it complete.

I need my internet browser to be able to be set as the default browser. I have 2 applications 1 being the browser lets call it browserapp1.exe and I have another app which we will call setasdefaultapp1.exe, setasdefaultapp1.exe will be an application basic form with 2 buttons one to exit and one to make browserapp1.exe the default internet browser.

I understand that to do this I need to edit the registry, would somebody be able to help me do this and maybe provide me with some source code?

When the button on setasdefaultapp1.exe is pressed I want browserapp1.exe to become the default browser in the start menu, become the default for html, htm, php etc.. and also when a link is pressed in an email it needs to load my browser.

I hope you can help!
 
This appears to only be for VB6 and below and only for xp and below.

Any other suggestions?
 
Although the code is for VB6 the registry keys would be the same regardless of the language used, you could use the .Net registry classes to modify those keys and get the same effect.

The article states XP as it was written at a time before Vista / Windows 7 and those registry keys should work the same on later versions of windows as well.
 
If you are using the code "as is" then you will get errors because as you said it was written for VB6.

Those registry keys will be the same regardless of language and switching the linked code to use the classes under Microsoft.Win32.Registry wouldn't be too difficult, not exciting admittedly but certainly not difficult.
 
Back
Top