Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine the calling object

Status
Not open for further replies.

StormbringerX

Programmer
Dec 14, 2000
102
US
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
 
Dave

I think property procedures can solve your problems


Sukhesh
 

Check out these:

thread222-484476
thread222-441338
thread222-325812
thread222-470257
thread222-508608
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top