Open default internet browser.

I want to open the with the default internet browser the home page of that browser, with vb net, for XP, vista, win 7, win8.
Solution 19298082 did not work because I get an error with

 If htmlShellOpenKey == Nothing Then
            Return Nothing
        End If

VB net 2012 doesn't like the == and doesn't like = either.
papaT555Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
Process.Start("www.microsoft.com")

== does not work in VB
= does work, but only with value objects (Integer, String, Date...)

With reference objects (any object based on a class), you need to use Is:

 If htmlShellOpenKey Is Nothing Then
0
papaT555Author Commented:
but i don't want a specific URL. i want the default browser's default homepage.
0
papaT555Author Commented:
i found it myself, but i have zero computer training.
the answer is something like this
 Dim myBrowser As String = My.Computer.Registry.GetValue(" HKEY_CURRENT_USER\Software\Clients\StartMenuInternet", "", "Not Found")

getting this error
 Registry key name must start with a valid base key name.

can someone show me how to fix this. the data entry is correct for all browsers?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
papaT555Author Commented:
Got it. had an extra space before the HKEY and added a CSTR(
now works.

To Moderator.
I really like this site and will use it often.
But since I turned out to be the expert on this one, do I get my money back?
How does it work?
Thanks, papaT555
0
LeeTutorretiredCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.