StormbringerX
Programmer
Hi gang...
This must be a common problem but I had no luck searching it on the FAQ's or threads.
Is there some way to know the identity of the form that has initiated another form? Specifically, what I need to do is:
My application is running MDI. I have a Search form. This Search needs to be applicable to several available forms. In my Search form a listview is built of all found data items. I need to be able to click on the listview item and return that item to the form that the search was initiated from.
I have the drag and drop functionality so the user can move the data to the appropriate form. And I realize that I could use a global indicator to know which form initiated the Search. But it would be nice (and would also suit my sometimes stubborn need to keep things object oriented) to know which form called the search and return the results to that form without using any application specific code.
Thanks in advance...
Dave
This must be a common problem but I had no luck searching it on the FAQ's or threads.
Is there some way to know the identity of the form that has initiated another form? Specifically, what I need to do is:
My application is running MDI. I have a Search form. This Search needs to be applicable to several available forms. In my Search form a listview is built of all found data items. I need to be able to click on the listview item and return that item to the form that the search was initiated from.
I have the drag and drop functionality so the user can move the data to the appropriate form. And I realize that I could use a global indicator to know which form initiated the Search. But it would be nice (and would also suit my sometimes stubborn need to keep things object oriented) to know which form called the search and return the results to that form without using any application specific code.
Thanks in advance...
Dave