471,337 Members | 907 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Refersh parent form and pass new values

Hi,

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

Thanks
Dec 29 '05 #1
3 1616
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.

"Vivek" <vi****@xtra.co.nz> wrote in message
news:ez**************@TK2MSFTNGP14.phx.gbl...
Hi,

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

Thanks

Dec 29 '05 #2
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

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl...
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.

"Vivek" <vi****@xtra.co.nz> wrote in message
news:ez**************@TK2MSFTNGP14.phx.gbl...
Hi,

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

Thanks


Dec 29 '05 #3
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.

"Vivek" <vi****@xtra.co.nz> wrote in message
news:uN*************@TK2MSFTNGP12.phx.gbl...
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

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl...
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.

"Vivek" <vi****@xtra.co.nz> wrote in message
news:ez**************@TK2MSFTNGP14.phx.gbl...
Hi,

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

Thanks



Dec 29 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by frixx net via .NET 247 | last post: by
1 post views Thread by ctsasikumar | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.