Kevin Shelton
July 22nd, 1999, 04:23 PM
I have a form that prints infomration on label captions from intormation stored in the registry. I have a second options form that changes the information in the registry. How can I change the information on the original form with out bringing up a second instance of that form?
Ravi Kiran
July 23rd, 1999, 12:23 AM
you can have a Public member function in your InfoDisplay form like ReLoad or UpdateNewValues
which will read the data from the registry.
You can call this function from your dataentry form at the click of a "Update Registry" btn or form close. For this to happen, you must pass a pointer of the InfoDisplay form to the DataEntry form.
The new way doing this is thru "implements". You can design a interface for these two forms to talk to each other i.e they will be calling the funtions of each other thru this interface.
Another method is to Raise an Event in the DataEntry form and handle that event in the InfoDisplay form, After the data entry done and registry updated by the DataEntry form, it will raise this event and in that event handle the InfoDisplay form will read the new data from Registry and updates itself.