Solved

Registry settings

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel VBA combine two working workbooks 8 53
A macro to Count the number of rows across all worksheets 3 93
Spell Check in VB6 13 112
Added a column screws up code 5 57
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

776 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