Hi!
Befre activating the popup and defining it, define the public variable that reference you form. Do not forget to clean up it before form close.
Youc an also use _Screen.ActiveForm, but it is buggy when form have ActiveX, and it reference only the current (focused) form.
Well, thisform reference or this.parent... works too, but only when you define popup and activate it in the same code snippet (in the same method).
HTH.
>Hi Eveybody,
>
>I have added a method to the form and I want to call this method with ON SELECTION POPUP command. How can I do this?
>
>Regards,
>
>Yash
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.