Default Homepage

saami

Member
Joined
Jan 1, 2006
Messages
6
Location
Chennai
Programming Experience
Beginner
The requirement is I have to change the Default homepage of the browser using the VB.NET. Is there any way to do it? Kindly help.
 
Change it in registry HKey_Current_User\Software\Microsoft\Internet Explorer\Main in the 'Start Page' key.
I have XP, but I think it is valid for win3x/9x systems too.

In VS2003 you have the Microsoft.Win32.Registry and RegistryKey classes.
With VS2005 you can also do it like this:
VB.NET:
My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\TestApp", "Name", "Author's Name")
 
But it didn't worked, I directly went to registry(REGEDIT) and changed the registry key that you mentioned to 'http://www.yahoo.com' and tried opening the internet browser(IE) but the page is not defaulted with YAhoo. I am using win2000, did I missed anything? kindly help.
 
I have Norton AntiVirus installed and it won't let me change that registry key because it is something that malicious software might do. Perhaps you have antivirus software installed that behaves similarly.
 
Thanks

Yes , Antivirus software is the problem and once I disabled it worked.
Thanks a ton.:)
 
Back
Top