>>Since it seems that whatever you do, you still have to modify in all places from where you make this call (unless you have a special class to deal with this), I think the easiest solution is to send the THIS object as a parameter to the second form. In this way, you have just one line (the one where you call the second form) to modify in more places and you can do all the rest (enable, disable the calling button) in the called form.
>
>Another good idea, I'll have to try them all.
Even better: you can put in your framework in all base classes, in the click event:
oApp.LastClicked = This
This way you know all the time which object was clicked last time. Probably it will take you the same work as any other previous solution (obvious, in the current problem, you will enable/disable oApp.LastClicked object in your second form), but you can use this in much many cases. Please note that beeing an object reference you can access any method/property of the LastClicked object, including it's PARENT. Etc, etc.
Vlad
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