Solved

registry key

Posted on 2004-10-29
168 Views
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
0
Question by:Moizsaif123
    1 Comment
     
    LVL 96

    Accepted Solution

    by:
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now