Refersh parent form and pass new values

V

Vivek

Hi,

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

Thanks
 
P

Peter Rilling

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.
 
V

Vivek

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
 
P

Peter Rilling

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top