Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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!

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...