going back to parent form

G

Guest

I have a child form that can be opened from different parent forms. On the
child form, there is a "back" button which closes the child form and opens
the parent form from which it came. I'm doing this by passing the parent form
name in the OpenArgs paramenter. Is there a more elegant way of doing this?
 
M

Marshall Barton

Italian said:
I have a child form that can be opened from different parent forms. On the
child form, there is a "back" button which closes the child form and opens
the parent form from which it came. I'm doing this by passing the parent form
name in the OpenArgs paramenter. Is there a more elegant way of doing this?


As a general solution, that's a good way to do it.

If the "child" form is always closed when the "back" button
is used, the behavior you want is usually automatic (can be
forced if the "child" form is opend in dialog mode).
 

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