Solved

How do I read a HKEY_CURRENT_USER registry value in VB6?

Posted on 2008-10-20
1
634 Views
Last Modified: 2012-05-05
How do I read a HKEY_CURRENT_USER registry value in VB6?
0
Comment
Question by:pat_cunningham
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 22759256
Hi, pat_cunningham.

Something like this will do it.
Dim objShell 
Set objShell = CreateObject("WScript.Shell")
varValue = objShell.RegRead("HKCU\SomeKey")

Open in new window

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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