Results 1 to 3 of 3

Thread: registry reading!

  1. #1

    Thread Starter
    Addicted Member herpysz's Avatar
    Join Date
    Mar 2002
    Location
    Europe>Moldova>Kishinev
    Posts
    176

    registry reading!

    How can i read a value from HKEY_CURRENT_USER\TEST\OK
    I have string parameter called <Id> and have the value <1234>
    So how can i get in my text box the value of <Id>?????
    Next regards from Herpysz!

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Use the attached class module along with this code:
    VB Code:
    1. Dim objReg As clsRegistry
    2.     Set objReg = New clsRegistry
    3.     Text1.Text = objReg.GetValue(eHKEY_CURRENT_USER, "TEST\OK", "Id")
    4.     Set objReg = Nothing
    Attached Files Attached Files

  3. #3
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    Or you could try this class . . .
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width