dodode Posted April 4, 2010 Posted April 4, 2010 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! Quote
Leaders snarfblam Posted April 4, 2010 Leaders Posted April 4, 2010 I found How to modify the default Web browser and... using the googles. Quote [sIGPIC]e[/sIGPIC]
dodode Posted April 4, 2010 Author Posted April 4, 2010 This appears to only be for VB6 and below and only for xp and below. Any other suggestions? Quote
Administrators PlausiblyDamp Posted April 4, 2010 Administrators Posted April 4, 2010 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
dodode Posted April 4, 2010 Author Posted April 4, 2010 When using that code it came up with quite a few errors though. Quote
Administrators PlausiblyDamp Posted April 4, 2010 Administrators Posted April 4, 2010 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.