which form/obj instatiated me?

stormin_norm

Registered User.
Local time
Today, 06:39
Joined
Apr 23, 2003
Messages
213
Is there a stack or method for finding out which object/form is the parent object/form?

Lets say you have a main menu which opens a popup form, which then opens a form.
It would be nice to use the same popup form, track which menu item opened it, and pass this information to the child form.

menu-->popup form---> form

Does the Form(s) object track the sequence?


I imagine the easiest is to simply reference if menu!commandbox_selected or something like this. But then every form must know all the menu items.
 
Can't you just use the OpenArgs of a form when opening it to send information such as the calling form?

Also, to find the name of a parent object: Me.Parent.Name
 
OpenArgs sounds good, I just have to reference the parent open args when on the popup, to pass along the menu choice.
 

Users who are viewing this thread

Back
Top Bottom