Solved

Registry settings

Posted on 1998-11-19
1
172 Views
Last Modified: 2010-05-03
I have a form named 'preferences' which contains four text boxes. As soon as user inserts some data, the data should be added to registry settings.
I need help in following things...
1. Do i need to create a path in registry for these preferences?
2. How to pass information from form text boxes to registry preferences path?
3. In the same way, updation also?

please reply me immediately.
0
Comment
Question by:rgodavarthi
[X]
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
 

Accepted Solution

by:
carty earned 70 total points
ID: 1445731
Before attempting to pass values to the registry you should be confindent with how the registry operates:  The registry is essentially a database that has an object model The following properties are available:

Root    Sets the active root key
Key      Sets the active sub-key
Autocreate   When true creates the active key if non is existent
ValueCount The count of the values found in a key
SubKeyCount  The count of the subkeys in the active key

Methods available:

Create   Creates a new key and makes it activer
Delete   Deletes a key and any subkeys
DeleteValue Deletes the name and value pair from a key
GetName returns the name
GetValue Returns the value
SetValue Sets the value of a name
Refresh reloads the cache data from the active key

For me to give you a full tutorial on the registry and its API would take up too much space.  If you donot have time to do further research consider the following API calls GetPrivateProfileString
and WritePrivateProfileString they are used to read and apply value to .ini files and are still in many cases faster than the registry option.

I hope that I have assists you.



David Carty
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

734 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