General information
Category:
Forms & Form designer
>>With help last week from Naomi and Hilmar I am able to check for the existence of form b (called from form a) and close it from form a. (See Thread 1473802) Now I'd like to execute a method in Form B called from an event in Form A. Is that possible?
>>
>>Thanks in advance.
>>
>>dg
>
>The way I solve such problem is this:
>
>You need to get a reference to the formB in form's A. One of the ways is if the form B calls Form A it passes itself as a reference, e.g.
>
>do formA with thisform. In the form's A Init method you save that reference in form's property and then you can call any method of form's B using that reference.
Thank you very much for your patience and assistance. Form A is the main form called from the main program. It sets a menu. From controls on Form A, Form B would be called. Since both are modeless, the user can move focus from one form to the other. If Form A has focus and an event occurs, I want to execute a method in Form B without closing Form B and reinstantiating Form B.
Could you please identify how the reference would be passed in this case.
dg
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only