going back to parent form

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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).
 
Back
Top