Solved

Registry settings

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

747 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

8 Experts available now in Live!

Get 1:1 Help Now