Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


registry key

Posted on 2004-10-29
Medium Priority
Last Modified: 2010-04-23
I am trying to access a registry key from VB.NET and webapp using the code below...

I am not sure whether it is a security issue or what but i am not able to retreive this value..

Dim rk As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Location")
Dim objValue As Object
Dim strValue As String

If Not (rk Is Nothing) Then
  objValue = rk.GetValue("ZipCode")
       If Not (objValue Is Nothing) Then
          strValue = CType(objValue, String)
          TextBox1.Text = strValue
       End If
End If
Question by:Moizsaif123
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 96

Accepted Solution

Bob Learned earned 800 total points
ID: 12454288

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question