Solved

Registry settings

Posted on 1998-11-19
1
166 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 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

14 Experts available now in Live!

Get 1:1 Help Now