Refersh parent form and pass new values

  • Thread starter Thread starter Vivek
  • Start date Start date
V

Vivek

Hi,

I wish to refresh the parent form and pass the new values from child form.
How can I do it?

Thanks
 
Do you mean a manual refresh like when the user presses F5?

1) You could probably hook the F5 key.
2) You could setup a timer that runs every second or so looking for
changes.
3) You could set a trigger on some controls that when they change a refresh
command is invoked.
 
Sorry, I should have clarified it earlier. I mean that I am making a change
in the child form and wish to pass the info to the parent and refresh the
control
 
You can define an event in the child form. Bind the parent form to this
(you might have to pass the parent form to the child form's constructor).
Then when changes are made, simply raise the event.
 
Back
Top